aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2024-09-25 23:02:15 -0400
committerGitHub <noreply@github.com>2024-09-25 22:02:15 -0500
commitaf36156a5bbd571f97378f10d1357b1da8f555cd (patch)
treefdf65e83ab6357514042a9f6e9ba568711bd8cb3
parentUse `const_skip` (diff)
downloadpokeyellow-af36156a5bbd571f97378f10d1357b1da8f555cd.tar.gz
pokeyellow-af36156a5bbd571f97378f10d1357b1da8f555cd.tar.xz
pokeyellow-af36156a5bbd571f97378f10d1357b1da8f555cd.zip
This byte is written to, but not used (#471)
it's written to in init_player_data.asm ``` ld hl, wObtainedBadges ld [hli], a ld [hl], a ```
-rw-r--r--engine/movie/oak_speech/init_player_data.asm2
-rw-r--r--ram/wram.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/movie/oak_speech/init_player_data.asm b/engine/movie/oak_speech/init_player_data.asm
index 492e8068..6b0a1a11 100644
--- a/engine/movie/oak_speech/init_player_data.asm
+++ b/engine/movie/oak_speech/init_player_data.asm
@@ -34,7 +34,7 @@ DEF START_MONEY EQU $3000
ld hl, wObtainedBadges
ld [hli], a
-
+ assert wObtainedBadges + 1 == wUnusedObtainedBadges
ld [hl], a
ld hl, wPlayerCoins
diff --git a/ram/wram.asm b/ram/wram.asm
index c94c682f..8a774edf 100644
--- a/ram/wram.asm
+++ b/ram/wram.asm
@@ -1743,7 +1743,7 @@ wOptions:: db
wObtainedBadges:: flag_array NUM_BADGES
- ds 1
+wUnusedObtainedBadges:: db
wLetterPrintingDelayFlags:: db