Fixed "new trainer id" option, thanks to Lunos and Deokishisu

This commit is contained in:
TheXaman 2021-05-07 10:31:59 +02:00
parent 40ebd66084
commit c8c81e4156

View File

@ -950,7 +950,7 @@ static void DebugAction_Util_Trainer_Gender(u8 taskId)
}
static void DebugAction_Util_Trainer_Id(u8 taskId)
{
u32 trainerId = (Random() << 0x10) | GetGeneratedTrainerIdLower();
u32 trainerId = ((Random() << 16) | Random());
SetTrainerId(trainerId, gSaveBlock2Ptr->playerTrainerId);
Debug_DestroyMenu(taskId);
EnableBothScriptContexts();