Skip to content

Commit

Permalink
CreateFacilityMon error: 'personality' may be used uninitialized (#5981)
Browse files Browse the repository at this point in the history
  • Loading branch information
DizzyEggg authored Jan 9, 2025
1 parent e264fa6 commit e244d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_tower.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e244d94

Please sign in to comment.