From 8a6284c408b81ce6bb4516ed5f1cf772b5557b22 Mon Sep 17 00:00:00 2001 From: Martin Griffin Date: Sun, 22 Oct 2023 14:03:46 +0100 Subject: [PATCH] Fix battle test estimateCost bug (#3448) --- test/test_runner_battle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index d8369850d7..54c8baae24 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;