From 6718981fb12b579a3ecb13b5ff01ce730514af52 Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 3 Jun 2014 16:34:21 -0700 Subject: [PATCH] Truncate MAX_LEVEL + 1 if it exceeds 8 bits. If MAX_LEVEL was set to 255, the value could not fit into a byte. --- main.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.asm b/main.asm index 9dc5c06a1..8aa288d48 100644 --- a/main.asm +++ b/main.asm @@ -61186,7 +61186,7 @@ Function50e1b: ; 50e1b .asm_50e26 inc d ld a, d - cp MAX_LEVEL + 1 + cp (MAX_LEVEL + 1) % $100 jr z, .asm_50e45 call Function50e47 push hl