Merge pull request #1986 from LOuroboros/patch-1

Updated value of gMain.inBattle at OpponentHandleEndLinkBattle
This commit is contained in:
GriffinR 2024-04-11 14:39:00 -04:00 committed by GitHub
commit a0637251f8
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);
}