From e244d942cce5018a14f3b2910cb5689432cf2666 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Thu, 9 Jan 2025 14:01:00 +0100 Subject: [PATCH] CreateFacilityMon error: 'personality' may be used uninitialized (#5981) --- src/battle_tower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_tower.c b/src/battle_tower.c index 6f80823b9857..3f614cf2943e 100644 --- a/src/battle_tower.c +++ b/src/battle_tower.c @@ -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) {