diff --git a/scorch.bin b/scorch.bin index 6507115..a20c88a 100644 Binary files a/scorch.bin and b/scorch.bin differ diff --git a/scorch.xex b/scorch.xex index f5fdeb6..e883f35 100644 Binary files a/scorch.xex and b/scorch.xex differ diff --git a/textproc.asm b/textproc.asm index f98a127..1f23598 100644 --- a/textproc.asm +++ b/textproc.asm @@ -366,7 +366,7 @@ AfterPurchase cmp IndexesOfWeaponsL1,y beq ?weaponfound iny - cpy #(last_offensive_____ - first_offensive____) ; maxOffensiveWeapons + cpy #(last_offensive_____ - first_offensive____)+1 ; maxOffensiveWeapons bne @- ; not found apparently? ; TODO: check border case (the last weapon) @@ -957,7 +957,7 @@ DefActivationEnd cmp IndexesOfWeaponsL2,y beq ?weaponfound iny - cpy #(last_defensive_____ - first_defensive____) ; maxDefensiveWeapon + cpy #(last_defensive_____ - first_defensive____)+1 ; maxDefensiveWeapon bne @- ; not found apparently? ; TODO: check border case (the last weapon)