diff --git a/engine/mail.asm b/engine/mail.asm index 90fcc5548..0335a6dfe 100755 --- a/engine/mail.asm +++ b/engine/mail.asm @@ -383,7 +383,7 @@ MailboxPC_PrintMailAuthor: ; 0x447fb MailboxPC: ; 0x44806 xor a - ld [OBPals palette 6], a + ld [wCurMessageScrollPosition], a ld a, 1 ld [wCurMessageIndex], a .loop @@ -397,11 +397,11 @@ MailboxPC: ; 0x44806 ld a, [wCurMessageIndex] ld [wMenuCursorBuffer], a - ld a, [OBPals palette 6] + ld a, [wCurMessageScrollPosition] ld [wMenuScrollPosition], a call ScrollingMenu ld a, [wMenuScrollPosition] - ld [OBPals palette 6], a + ld [wCurMessageScrollPosition], a ld a, [wMenuCursorY] ld [wCurMessageIndex], a diff --git a/wram.asm b/wram.asm index 5c0cd5929..2f9b8dda7 100644 --- a/wram.asm +++ b/wram.asm @@ -1839,7 +1839,7 @@ CurElevatorFloors:: db NEXTU ; d0f0 ; mailbox data - ds 1 +wCurMessageScrollPosition:: db wCurMessageIndex:: db wMailboxCount:: db wMailboxItems:: ds MAILBOX_CAPACITY