From 2c55448eae0bbd2ef3ed3474f0988f4ca22b09d1 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Sat, 29 Jun 2024 20:07:24 -0500 Subject: [PATCH] Fix Stats screen at max volume reference https://github.com/fellowship-of-the-roms/CrystalShireEngine/issues/27 --- engine/pokemon/mon_menu.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/pokemon/mon_menu.asm b/engine/pokemon/mon_menu.asm index 0d29ae990d..746f1eb5db 100644 --- a/engine/pokemon/mon_menu.asm +++ b/engine/pokemon/mon_menu.asm @@ -735,9 +735,11 @@ _OpenPartyStats: predef StatsScreenInit ; This ensures that MaxVolume works as it should if we're in the middle of ; playing a cry. - ld a, $77 + ld a, MAX_VOLUME ld [wLastVolume], a call MaxVolume + xor a + ld [wLastVolume], a call ExitMenu xor a ret