Bit shifts from hex to decimal
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user