Minor weapons list bug fixed

This commit is contained in:
Pecusx
2022-11-21 09:40:13 +01:00
parent b60efd0bbb
commit 7d9e6d2045
3 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -366,7 +366,7 @@ AfterPurchase
cmp IndexesOfWeaponsL1,y cmp IndexesOfWeaponsL1,y
beq ?weaponfound beq ?weaponfound
iny iny
cpy #(last_offensive_____ - first_offensive____) ; maxOffensiveWeapons cpy #(last_offensive_____ - first_offensive____)+1 ; maxOffensiveWeapons
bne @- bne @-
; not found apparently? ; not found apparently?
; TODO: check border case (the last weapon) ; TODO: check border case (the last weapon)
@@ -957,7 +957,7 @@ DefActivationEnd
cmp IndexesOfWeaponsL2,y cmp IndexesOfWeaponsL2,y
beq ?weaponfound beq ?weaponfound
iny iny
cpy #(last_defensive_____ - first_defensive____) ; maxDefensiveWeapon cpy #(last_defensive_____ - first_defensive____)+1 ; maxDefensiveWeapon
bne @- bne @-
; not found apparently? ; not found apparently?
; TODO: check border case (the last weapon) ; TODO: check border case (the last weapon)