summaryrefslogtreecommitdiff
path: root/src/new_game.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-03-30 17:38:09 -0400
committerGriffinR <griffin.g.richards@gmail.com>2021-03-30 17:38:09 -0400
commit8c6e89e994b312b3c6d36bcda8636343f80e4801 (patch)
treefc4eaf5a778dfda3405af33131960a64ec885048 /src/new_game.c
parentd5d1caf96550c91baef4a7f02670a6f1c83f6559 (diff)
Bit shifts from hex to decimal
Diffstat (limited to 'src/new_game.c')
-rw-r--r--src/new_game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_game.c b/src/new_game.c
index c43c6ae9f..05d86aa8c 100644
--- a/src/new_game.c
+++ b/src/new_game.c
@@ -87,7 +87,7 @@ void CopyTrainerId(u8 *dst, u8 *src)
static void InitPlayerTrainerId(void)
{
- u32 trainerId = (Random() << 0x10) | GetGeneratedTrainerIdLower();
+ u32 trainerId = (Random() << 16) | GetGeneratedTrainerIdLower();
SetTrainerId(trainerId, gSaveBlock2Ptr->playerTrainerId);
}