Updated value-setting of gMain.inBattle at OpponentHandleEndLinkBattle

This commit is contained in:
LOuroboros 2024-04-05 17:04:46 -03:00 committed by GitHub
parent f19747d6cc
commit 3135a1fc2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2007,7 +2007,7 @@ static void OpponentHandleEndLinkBattle(void)
{
if (gBattleTypeFlags & BATTLE_TYPE_LINK && !(gBattleTypeFlags & BATTLE_TYPE_IS_MASTER))
{
gMain.inBattle = 0;
gMain.inBattle = FALSE;
gMain.callback1 = gPreBattleCallback1;
SetMainCallback2(gMain.savedCallback);
}