diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:38 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-26 22:24:38 -0400 |
| commit | c85ba78b778a0e35c2fe7f97ed4e8fee1b3c7036 (patch) | |
| tree | f3d25ab52cbb2d1e92c89e1ad976dcb929c05768 /engine/events | |
| parent | 9dcdad5e60fbc10ba81ae127743c78a6b00d3dd5 (diff) | |
Use more assertions to ensure correct code and data
Diffstat (limited to 'engine/events')
| -rw-r--r-- | engine/events/bug_contest/judging.asm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/events/bug_contest/judging.asm b/engine/events/bug_contest/judging.asm index 361aef81a..abb9d60da 100644 --- a/engine/events/bug_contest/judging.asm +++ b/engine/events/bug_contest/judging.asm @@ -68,7 +68,8 @@ ContestJudging_ThirdPlaceScoreText: LoadContestantName: ; If a = 1, get your name. - dec a ; BUG_CONTEST_PLAYER + assert BUG_CONTEST_PLAYER == 1 + dec a jr z, .player ; Find the pointer for the trainer class of the Bug Catching Contestant whose ID is in a. ld c, a |
