From b553278a3d79ccab0e1b46bba695e9be91c1e1ac Mon Sep 17 00:00:00 2001 From: Hedara Date: Sat, 2 Aug 2025 16:33:42 +0200 Subject: [PATCH] Replaced manual zeroing with existing function calls --- test/test_runner_battle.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/test_runner_battle.c b/test/test_runner_battle.c index bfbf4c899d..0e78d44ee4 100644 --- a/test/test_runner_battle.c +++ b/test/test_runner_battle.c @@ -1344,13 +1344,8 @@ 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; - } + ZeroPlayerPartyMons(); + ZeroEnemyPartyMons(); } FreeMonSpritesGfx();