diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index 20271a588d..bfbf4c899d 100644 --- a/test/test_runner_battle.c +++ b/test/test_runner_battle.c @@ -1341,6 +1341,18 @@ void TestRunner_Battle_AfterLastTurn(void) static void TearDownBattle(void) { + // Zero out the parties, data in them could potentially carry over + for (u32 i = 0; i < 6; i++) + { + u32 *playerPtr = (u32 *)(&gPlayerParty[i]); + u32 *opponentPtr = (u32 *)(&gEnemyParty[i]); + for (u32 j = 0; j < sizeof(struct Pokemon)/4; j++) + { + playerPtr[j] = 0; + opponentPtr[j] = 0; + } + } + FreeMonSpritesGfx(); FreeBattleSpritesData(); FreeBattleResources();