Fix Match Call Behavior (#5931) (#6033)

This commit is contained in:
Mercy 2025-01-17 00:23:12 -05:00 committed by GitHub
parent fd26d3a406
commit 21d2e40f0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
{