summaryrefslogtreecommitdiff
path: root/battle/ai
diff options
context:
space:
mode:
authorBen10do <Ben10do@users.noreply.github.com>2017-06-09 22:01:10 +0100
committerBen10do <Ben10do@users.noreply.github.com>2017-06-09 22:01:10 +0100
commite6ea1889fbce20b0dc170310ac63891a1cca2bb5 (patch)
tree436ae844ff5b28f9680d2ac13657c0e9be3af690 /battle/ai
parentfb154f5a6e43a86801fd16f392633c854d099ac4 (diff)
Replace ‘jp [hl]’ with ‘jp hl’
The former is arguably misleading (as you don’t access the memory location in hl to retrieve the jump location), and is consequently deprecated in newer versions of rgbds. This fix silences these deprecation warnings.
Diffstat (limited to 'battle/ai')
-rw-r--r--battle/ai/items.asm2
-rwxr-xr-xbattle/ai/redundant.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm
index 4405ae756..f8c97578a 100644
--- a/battle/ai/items.asm
+++ b/battle/ai/items.asm
@@ -211,7 +211,7 @@ AI_TryItem: ; 38105
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
.callback
pop de
pop hl
diff --git a/battle/ai/redundant.asm b/battle/ai/redundant.asm
index da71d0ece..e3dda8c4b 100755
--- a/battle/ai/redundant.asm
+++ b/battle/ai/redundant.asm
@@ -11,7 +11,7 @@ AI_Redundant: ; 2c41a
ld a, [hli]
ld h, [hl]
ld l, a
- jp [hl]
+ jp hl
.Moves: ; 2c42c
dbw EFFECT_DREAM_EATER, .DreamEater