diff options
author | YamaArashi <shadow962@live.com> | 2016-11-06 11:56:03 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-11-06 11:56:03 -0800 |
commit | 7f5332c12025c36c90c647184a5a4b1a3433d200 (patch) | |
tree | 4e366dbdeeea2d105f610365ef82ae8adae02315 /src/battle_ai.c | |
parent | 74b660f22f5a7d23f01a1766127cfd9a47290132 (diff) |
remove asm() in battle_ai.c
Diffstat (limited to 'src/battle_ai.c')
-rw-r--r-- | src/battle_ai.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/battle_ai.c b/src/battle_ai.c index b9002e5bb..ec15a7bf6 100644 --- a/src/battle_ai.c +++ b/src/battle_ai.c @@ -175,13 +175,14 @@ void sub_8107374(void) break; case 0: gUnknown_02039238 = BattleAIs[unk_2016800.unk11]; - if(gBattleMons[gUnknown_02024C07].pp[unk_2016800.unk1] != 0) + if(gBattleMons[gUnknown_02024C07].pp[unk_2016800.unk1] == 0) { - asm("":::"r1"); //Prevent struct offset optimization - unk_2016800.unk2 = gBattleMons[gUnknown_02024C07].moves[unk_2016800.unk1]; + unk_2016800.unk2 = 0; } else - unk_2016800.unk2 = 0; + { + unk_2016800.unk2 = gBattleMons[gUnknown_02024C07].moves[unk_2016800.unk1]; + } unk_2016800.unk0++; break; case 1: @@ -282,4 +283,4 @@ void sub_81074F8(u8 a, u8 b) { if(battle_side_get_owner(a) == 0) unk_2016A00.unk22[battle_get_per_side_status(a) % 2] = b; -}
\ No newline at end of file +} |