fix building without NDEBUG on agbcc

This commit is contained in:
sbird
2022-04-16 19:03:20 +02:00
parent 8103caea15
commit 59cff2190d
3 changed files with 49 additions and 8 deletions
+4
View File
@@ -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;
}
}
}