summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-03-04 02:29:39 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2018-03-04 02:29:39 -0500
commit159a0ef7b451159dd75384e4a2121b85a25e277d (patch)
treeebfc8def306f63934ed3655d4d49f772cbdd143b
parent7e9dbde54962b104186717e7338f55f4e8d64678 (diff)
Bug docs match code
-rw-r--r--docs/bugs_and_glitches.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index 59f3e7000..6884cfbe0 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -903,18 +903,20 @@ StartTrainerBattle_DetermineWhichAnimation: ; 8c365 (23:4365)
([Video](https://www.youtube.com/watch?v=iHkWubvxmSg))
-This is a bug with `HallOfFame` in [engine/events/halloffame.asm](/engine/events/halloffame.asm):
+This is a bug with `_HallOfFamePC.DisplayMonAndStrings` in [engine/events/halloffame.asm](/engine/events/halloffame.asm):
```asm
- ld hl, wHallOfFameCount
- ld a, [hl]
- cp HOF_MASTER_COUNT - 1 ; should be HOF_MASTER_COUNT
- jr nc, .ok
- inc [hl]
-.ok
+ ld a, [wHallOfFameTempWinCount]
+ cp HOF_MASTER_COUNT + 1 ; should be HOF_MASTER_COUNT
+ jr c, .print_num_hof
+ ld de, .HOFMaster
+ hlcoord 1, 2
+ call PlaceString
+ hlcoord 13, 2
+ jr .finish
```
-**Fix:** Change `HOF_MASTER_COUNT - 1` to `HOF_MASTER_COUNT`.
+**Fix:** Change `HOF_MASTER_COUNT + 1` to `HOF_MASTER_COUNT`.
## Slot machine payout sound effects cut each other off