summaryrefslogtreecommitdiff
path: root/engine/phone
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:53:07 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-11-03 19:53:07 -0500
commitc88c4a834094e91f1505eab0e22294963e1dd987 (patch)
treeddfc0116b06e1327cf206abf5ed16e79e159fdb4 /engine/phone
parent826e070f0443b50ff31a49b4faf7c66577f1e26e (diff)
Identify more uses of wBuffer1-6
Diffstat (limited to 'engine/phone')
-rw-r--r--engine/phone/phone.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/phone/phone.asm b/engine/phone/phone.asm
index 5b808cf67..08ef07280 100644
--- a/engine/phone/phone.asm
+++ b/engine/phone/phone.asm
@@ -62,7 +62,7 @@ Phone_FindOpenSlot:
GetRemainingSpaceInPhoneList:
xor a
- ld [wBuffer1], a
+ ld [wRegisteredPhoneNumbers], a
ld hl, PermanentNumbers
.loop
ld a, [hli]
@@ -76,7 +76,7 @@ GetRemainingSpaceInPhoneList:
ld c, a
call _CheckCellNum
jr c, .permanent
- ld hl, wBuffer1
+ ld hl, wRegisteredPhoneNumbers
inc [hl]
.permanent
pop hl
@@ -87,7 +87,7 @@ GetRemainingSpaceInPhoneList:
.done
ld a, CONTACT_LIST_SIZE
- ld hl, wBuffer1
+ ld hl, wRegisteredPhoneNumbers
sub [hl]
ret