Truncate MAX_LEVEL + 1 if it exceeds 8 bits.

If MAX_LEVEL was set to 255, the value could not fit into a byte.
This commit is contained in:
yenatch 2014-06-03 16:34:21 -07:00
parent 21708a2271
commit 6718981fb1

View File

@ -61186,7 +61186,7 @@ Function50e1b: ; 50e1b
.asm_50e26 .asm_50e26
inc d inc d
ld a, d ld a, d
cp MAX_LEVEL + 1 cp (MAX_LEVEL + 1) % $100
jr z, .asm_50e45 jr z, .asm_50e45
call Function50e47 call Function50e47
push hl push hl