From 25627889b2aa17396d0e1e2d89b9dc71407aebcb Mon Sep 17 00:00:00 2001 From: shachar700 <48739719+shachar700@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:47:08 +0200 Subject: [PATCH] Update src/battle_script_commands.c Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> --- src/battle_script_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index f1a03b7af7d6..3bff8aee89d4 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -7351,7 +7351,7 @@ static void Cmd_forcerandomswitch(void) } while (GetMonData(&party[i], MON_DATA_SPECIES) == SPECIES_NONE || GetMonData(&party[i], MON_DATA_IS_EGG) == TRUE || GetMonData(&party[i], MON_DATA_HP) == 0); //should be one while loop, but that doesn't match. - *(gBattleStruct->monToSwitchIntoId + gBattlerTarget) = i; + gBattleStruct->monToSwitchIntoId[gBattlerTarget] = i; if (!IsMultiBattle()) SwitchPartyOrder(gBattlerTarget);