Fix battle test estimateCost bug (#3448)

This commit is contained in:
Martin Griffin 2023-10-22 14:03:46 +01:00 committed by GitHub
parent 8ab2fbd9a2
commit 8a6284c408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,7 @@ static u32 BattleTest_EstimateCost(void *data)
{ {
u32 cost; u32 cost;
const struct BattleTest *test = data; const struct BattleTest *test = data;
memset(STATE, 0, sizeof(*STATE));
STATE->runRandomly = TRUE; STATE->runRandomly = TRUE;
InvokeTestFunction(test); InvokeTestFunction(test);
cost = 1; cost = 1;