diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-04-16 14:57:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 14:57:06 -0400 |
commit | 493210d66ff41bcd934c639c7d188c520d094094 (patch) | |
tree | a857b6b36d99566aef4043f996fc73e7b1fa7448 /src/mystery_gift.c | |
parent | 8103caea153f0ab905a00d1f3ee99d088d294659 (diff) | |
parent | 59cff2190d44edf9e64c1d8c4cfd5931b2354aaf (diff) |
fix building without NDEBUG on agbcc
Diffstat (limited to 'src/mystery_gift.c')
-rwxr-xr-x | src/mystery_gift.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mystery_gift.c b/src/mystery_gift.c index 1df6533d9..72fc2b377 100755 --- a/src/mystery_gift.c +++ b/src/mystery_gift.c @@ -506,9 +506,13 @@ static void IncrementCardStat(u32 statType) } if (stat == NULL) + { AGB_ASSERT(0); + } else if (++(*stat) > MAX_WONDER_CARD_STAT) + { *stat = MAX_WONDER_CARD_STAT; + } } } |