From c8c81e41560d88ff80f15fe6712c13798ae6bfb4 Mon Sep 17 00:00:00 2001 From: TheXaman Date: Fri, 7 May 2021 10:31:59 +0200 Subject: [PATCH] Fixed "new trainer id" option, thanks to Lunos and Deokishisu --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index df0573574..29a0d06d6 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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();