From c85ba78b778a0e35c2fe7f97ed4e8fee1b3c7036 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 26 Oct 2020 22:24:38 -0400 Subject: Use more assertions to ensure correct code and data --- engine/events/bug_contest/judging.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/events') 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 -- cgit v1.2.3