diff options
| author | Daniel Harding <corrnondacqb@yahoo.com> | 2017-09-26 12:02:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-26 12:02:00 -0500 |
| commit | dcbeb6b641f97a7840ad18c76e3aec1089d184d5 (patch) | |
| tree | 9ade0c53b1a5e11e059e7be6d44e35eb13e6c4f5 /engine/battle/trainer_ai.asm | |
| parent | Add Gen 3 disassemblies. (diff) | |
| parent | Fix warnings about deprecated mnemonics on newer builds of rgbds (diff) | |
| download | pokeyellow-dcbeb6b641f97a7840ad18c76e3aec1089d184d5.tar.gz pokeyellow-dcbeb6b641f97a7840ad18c76e3aec1089d184d5.tar.xz pokeyellow-dcbeb6b641f97a7840ad18c76e3aec1089d184d5.zip | |
Merge pull request #26 from Pokechu22/mnemonic-warnings
Fix warnings about deprecated mnemonics on newer builds of rgbds
Diffstat (limited to 'engine/battle/trainer_ai.asm')
| -rw-r--r-- | engine/battle/trainer_ai.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm index 2f2c46a6..f4e50562 100644 --- a/engine/battle/trainer_ai.asm +++ b/engine/battle/trainer_ai.asm @@ -51,7 +51,7 @@ AIEnemyTrainerChooseMoves: ld l, a ld de, .nextMoveChoiceModification ; set return address push de - jp [hl] ; execute modification function + jp hl ; execute modification function .loopFindMinimumEntries ; all entries will be decremented sequentially until one of them is zero ld hl, wBuffer ; temp move selection array ld de, wEnemyMonMoves ; enemy moves @@ -372,7 +372,7 @@ TrainerAI: ld h,[hl] ld l,a call Random - jp [hl] + jp hl .done and a ret |
