Skip to content

Commit

Permalink
Merge pull request #1986 from LOuroboros/patch-1
Browse files Browse the repository at this point in the history
Updated value of gMain.inBattle at OpponentHandleEndLinkBattle
  • Loading branch information
GriffinRichards authored Apr 11, 2024
2 parents 0b73cd8 + 3135a1f commit a063725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_controller_opponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a063725

Please sign in to comment.