From f12773dbb8456a04edac588f0900b7a55c47d893 Mon Sep 17 00:00:00 2001 From: Bassoonian Date: Thu, 9 May 2024 16:22:17 +0200 Subject: [PATCH] Fix possible agbcc corruption for tree mutations (#4535) --- src/berry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/berry.c b/src/berry.c index e66b106ca9..9f187bd1e2 100644 --- a/src/berry.c +++ b/src/berry.c @@ -2383,6 +2383,7 @@ static u8 GetTreeMutationValue(u8 id) return 0; myMutation.asField.a = tree->mutationA; myMutation.asField.b = tree->mutationB; + myMutation.asField.unused = 0; return sBerryMutations[myMutation.value - 1][2]; #else return 0;