Prevent infinite loop. (#3808)

Regression caused by fe1bad68b4
This commit is contained in:
Zimmermann Gyula 2023-12-23 12:29:12 +01:00 committed by GitHub
parent 1a7166c2bb
commit 72615a7c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2989,6 +2989,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));