summaryrefslogtreecommitdiff
path: root/src/battle_ai.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-30 15:39:17 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2017-06-30 15:39:17 -0400
commit22da2dfafc892e8d07af95e715cb1ae889bccd5c (patch)
treee414e0f40a1c91290793c8ba6e528bb1f272438c /src/battle_ai.c
parentd5e220ebbe7ca570306ee176926b9d81373414df (diff)
finish decompiling sound_check_menu.c except for sub_80BAE78
Diffstat (limited to 'src/battle_ai.c')
-rw-r--r--src/battle_ai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai.c b/src/battle_ai.c
index fabe0b61d..691270d69 100644
--- a/src/battle_ai.c
+++ b/src/battle_ai.c
@@ -1993,7 +1993,7 @@ static void BattleAICmd_get_item(void)
index = gBankTarget;
// this hack and a half matches. whatever. i dont care. someone else fix this mess later. PS: still cant fix this.
- AI_THINKING_STRUCT->funcResult = ewram[0x160CC + (index * 2)];
+ AI_THINKING_STRUCT->funcResult = ewram[MULTI_DIM_ARR(index, B_16, 0x160CC)];
gAIScriptPtr += 2;
}