From b58bc0b96d410ef6deda687e5a1d7f00dcb4059e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Apr 2024 01:10:04 +0200 Subject: [PATCH] Fix totem boost not triggering --- src/battle_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_main.c b/src/battle_main.c index 2f3754665a66..732bd97035d5 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -5273,11 +5273,11 @@ static void TurnValuesCleanUp(bool8 var0) gProtectStructs[i].quash = FALSE; gProtectStructs[i].usedCustapBerry = FALSE; gProtectStructs[i].quickDraw = FALSE; + memset(&gQueuedStatBoosts[i], 0, sizeof(struct QueuedStatBoost)); } else { memset(&gProtectStructs[i], 0, sizeof(struct ProtectStruct)); - memset(&gQueuedStatBoosts[i], 0, sizeof(struct QueuedStatBoost)); if (gDisableStructs[i].isFirstTurn) gDisableStructs[i].isFirstTurn--;