From ad620243d937bf241a1feca8c96b18f805b946af Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 20:21:08 -0500 Subject: [PATCH] Fix `make compare` --- docs/bugs.md | 4 ++-- engine/search.asm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/bugs.md b/docs/bugs.md index bbf23d249..4e252699b 100644 --- a/docs/bugs.md +++ b/docs/bugs.md @@ -434,7 +434,7 @@ This bug can allow you to talk to Eusine in Celadon City and encounter Ho-Oh wit ld hl, PlayerName -rept PLAYER_NAME_LENGTH_JAPANESE - 1 ; should be PLAYER_NAME_LENGTH - 1 +rept NAME_LENGTH_JAPANESE +- 2 ; should be PLAYER_NAME_LENGTH +- 2 ld a, [de] cp [hl] jr nz, .notfound @@ -456,7 +456,7 @@ endr ret ``` -**Fix:** Change `rept PLAYER_NAME_LENGTH_JAPANESE - 1` to `rept PLAYER_NAME_LENGTH - 1`. +**Fix:** Change `rept NAME_LENGTH_JAPANESE +- 2` to `rept PLAYER_NAME_LENGTH +- 2`. ## `HELD_CATCH_CHANCE` has no effect diff --git a/engine/search.asm b/engine/search.asm index 72b734e36..76be0e159 100755 --- a/engine/search.asm +++ b/engine/search.asm @@ -219,7 +219,7 @@ CheckOwnMon: ; 0x4a7ba ld hl, PlayerName -rept PLAYER_NAME_LENGTH_JAPANESE - 1 ; should be PLAYER_NAME_LENGTH - 1 +rept NAME_LENGTH_JAPANESE +- 2 ; should be PLAYER_NAME_LENGTH +- 2 ld a, [de] cp [hl] jr nz, .notfound