summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-29 15:54:20 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-29 15:54:20 -0400
commit0882b456934e87b3b5fa1415ca6ab34087c68a4a (patch)
treefaeb206b7d5bc7445ed2cf3c6bbd03cb7996da05 /src/battle_script_commands.c
parent0dccfbbd447e6c3764c123a048e75e3085e58771 (diff)
Clean up some ewram refs inside gBattleStruct
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index d1143d764..a98a0eae0 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -5181,7 +5181,7 @@ static void atk1E_jumpifability(void)
gLastUsedAbility = ability;
gBattlescriptCurrInstr = jumpPtr;
RecordAbilityBattle(battlerId -1, gLastUsedAbility);
- ewram160F8 = battlerId - 1;
+ gBattleStruct->unk160F8 = battlerId - 1;
}
else
gBattlescriptCurrInstr += 7;
@@ -5194,7 +5194,7 @@ static void atk1E_jumpifability(void)
gLastUsedAbility = ability;
gBattlescriptCurrInstr = jumpPtr;
RecordAbilityBattle(battlerId - 1, gLastUsedAbility);
- ewram160F8 = battlerId - 1;
+ gBattleStruct->unk160F8 = battlerId - 1;
}
else
gBattlescriptCurrInstr += 7;
@@ -5207,7 +5207,7 @@ static void atk1E_jumpifability(void)
gLastUsedAbility = ability;
gBattlescriptCurrInstr = jumpPtr;
RecordAbilityBattle(battlerId, gLastUsedAbility);
- ewram160F8 = battlerId;
+ gBattleStruct->unk160F8 = battlerId;
}
else
gBattlescriptCurrInstr += 7;