fix off-by-1 bug in okvs_next

This commit is contained in:
4am 2019-09-23 13:14:27 -04:00
parent ecca066038
commit f627796bbf

View File

@ -304,12 +304,13 @@ okvs_get_current
;------------------------------------------------------------------------------
okvs_next
+STAY PARAM
inx
stx SAVE
jsr okvs_len
cmp SAVE
bne +
ldx #$FF
+ inx
ldx #$00
+
+LDAY PARAM
; execution falls through here
;------------------------------------------------------------------------------