diff options
| author | Antonio Niño Díaz <antonio_nd@outlook.com> | 2017-06-09 22:54:09 +0100 |
|---|---|---|
| committer | Antonio Niño Díaz <antonio_nd@outlook.com> | 2017-06-09 22:54:09 +0100 |
| commit | 9ea25bc8cd32df5b3bcf6333c3d2582e1b11f2dd (patch) | |
| tree | 838b94841af8efe22697c15775f99035d42fd734 /engine/battle/trainer_ai.asm | |
| parent | Update Travis configuration to use rgbds 0.3.1 (diff) | |
| download | pokeyellow-9ea25bc8cd32df5b3bcf6333c3d2582e1b11f2dd.tar.gz pokeyellow-9ea25bc8cd32df5b3bcf6333c3d2582e1b11f2dd.tar.xz pokeyellow-9ea25bc8cd32df5b3bcf6333c3d2582e1b11f2dd.zip | |
Replace deprecated mnemonics by the correct ones
The old mnemonics generate warnings with new versions of rgbds. This
patch replaces them by the correct ones.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
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 b175fcaf..d78079e8 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 @@ -366,7 +366,7 @@ TrainerAI: ld h,[hl] ld l,a call Random - jp [hl] + jp hl TrainerAIPointers: ; one entry per trainer class |
