From 78b6f1a613913536789fe1bcc91b95d6cca54ae9 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 25 Sep 2017 19:18:33 -0700 Subject: Fix warnings about deprecated mnemonics on newer builds of rgbds --- engine/battle/trainer_ai.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/battle/trainer_ai.asm') 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 -- cgit v1.3.1-sl0p