Skip to content

Commit

Permalink
Fix Match Call Behavior (#5931) (#6033)
Browse files Browse the repository at this point in the history
  • Loading branch information
MercedesCL authored Jan 17, 2025
1 parent fd26d3a commit 21d2e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/battle_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1742,8 +1742,8 @@ static bool32 UpdateRandomTrainerRematches(const struct RematchTrainer *table, u

for (i = 0; i <= REMATCH_SPECIAL_TRAINER_START; i++)
{
if (DoesCurrentMapMatchRematchTrainerMap(i,table,mapGroup,mapNum) && !IsRematchForbidden(i))
continue;
if (!DoesCurrentMapMatchRematchTrainerMap(i,table,mapGroup,mapNum) || IsRematchForbidden(i))
continue; // Only check permitted trainers within the current map.

if (gSaveBlock1Ptr->trainerRematches[i] != 0)
{
Expand Down

0 comments on commit 21d2e40

Please sign in to comment.