summaryrefslogtreecommitdiff
path: root/src/battle_ai_script_commands.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-29 21:31:19 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-29 21:31:19 -0400
commitfe2897c8a49579e6aac147d5d365b7fa6c6cdb72 (patch)
tree0154143abc4812cb2797077501bd889988b265db /src/battle_ai_script_commands.c
parent7929bdf80b174f31c512970b2fa64652f222a09b (diff)
Define BSTRUCT_OFF for gBattleStruct macro hacks
Diffstat (limited to 'src/battle_ai_script_commands.c')
-rw-r--r--src/battle_ai_script_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c
index 9f0cc406d..0d1a4c351 100644
--- a/src/battle_ai_script_commands.c
+++ b/src/battle_ai_script_commands.c
@@ -1758,7 +1758,7 @@ static void BattleAICmd_get_used_item(void)
else
index = gBattlerTarget;
- AI_THINKING_STRUCT->funcResult = AI_ARRAY_160CC(index);
+ AI_THINKING_STRUCT->funcResult = gSharedMem[offsetof(struct BattleStruct, usedHeldItems) + 2 * index];
gAIScriptPtr += 2;
}