Fix possible agbcc corruption for tree mutations (#4535)

This commit is contained in:
Bassoonian 2024-05-09 16:22:17 +02:00 committed by GitHub
parent dd0c3a9ee5
commit f12773dbb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;