CreateFacilityMon error: 'personality' may be used uninitialized (#5981)

This commit is contained in:
DizzyEggg 2025-01-09 14:01:00 +01:00 committed by GitHub
parent e264fa6fc0
commit e244d942cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1567,7 +1567,7 @@ void CreateFacilityMon(const struct TrainerMon *fmon, u16 level, u8 fixedIV, u32
{
u8 ball = (fmon->ball == 0xFF) ? Random() % POKEBALL_COUNT : fmon->ball;
u16 move;
u32 personality, ability, friendship, j;
u32 personality = 0, ability, friendship, j;
if (fmon->gender == TRAINER_MON_MALE)
{