diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-03-30 17:38:09 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-03-30 17:38:09 -0400 |
commit | 8c6e89e994b312b3c6d36bcda8636343f80e4801 (patch) | |
tree | fc4eaf5a778dfda3405af33131960a64ec885048 /src/new_game.c | |
parent | d5d1caf96550c91baef4a7f02670a6f1c83f6559 (diff) |
Bit shifts from hex to decimal
Diffstat (limited to 'src/new_game.c')
-rw-r--r-- | src/new_game.c | 2 |
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); } |