Skip to content

Commit

Permalink
Prevent infinite loop. (rh-hideout#3808)
Browse files Browse the repository at this point in the history
Regression caused by rh-hideout@fe1bad6
  • Loading branch information
Fervstheone committed Dec 27, 2023
1 parent 84b8a44 commit 9cf4ceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/battle_tower.c
Original file line number Diff line number Diff line change
Expand Up @@ -3052,6 +3052,8 @@ static void FillPartnerParty(u16 trainerId)
otID = STEVEN_OTID;
else
otID = ((firstIdPart % 72) * 1000) + ((secondIdPart % 23) * 10) + (thirdIdPart % 37) % 65536;

do
{
personality = Random32();
} while (IsShinyOtIdPersonality(otID, personality));
Expand Down

0 comments on commit 9cf4ceb

Please sign in to comment.