diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index d8369850d..54c8baae2 100644 --- a/test/test_runner_battle.c +++ b/test/test_runner_battle.c @@ -125,6 +125,7 @@ static u32 BattleTest_EstimateCost(void *data) { u32 cost; const struct BattleTest *test = data; + memset(STATE, 0, sizeof(*STATE)); STATE->runRandomly = TRUE; InvokeTestFunction(test); cost = 1;