Merge pull request #2261 from SiliconA-Z/assertion

Fix fakematch in AllocateBattleResources
This commit is contained in:
Martin Griffin 2026-04-21 16:31:00 +01:00 committed by GitHub
commit f9173995c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,10 @@
void AllocateBattleResources(void)
{
gBattleResources = gBattleResources; // something dumb needed to match
if (gBattleResources != NULL) {
// There was an assert here.
// But it didn't compile.
}
if (gBattleTypeFlags & BATTLE_TYPE_TRAINER_HILL)
InitTrainerHillBattleStruct();