Skip to content

Commit

Permalink
Replace Hard-Coded Number With Constant
Browse files Browse the repository at this point in the history
Replace a hard coded $a in CheckMapForMon with NUM_WILDMONS
  • Loading branch information
Chatot4444 authored and dannye committed Aug 11, 2022
1 parent d953bd3 commit 8f369bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/items/item_effects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3165,7 +3165,7 @@ FindWildLocationsOfMon:

CheckMapForMon:
inc hl
ld b, $a
ld b, NUM_WILDMONS
.loop
ld a, [wd11e]
cp [hl]
Expand Down

0 comments on commit 8f369bf

Please sign in to comment.