off-by-1 bug in okvs_get

This commit is contained in:
4am 2018-11-19 20:52:12 -05:00
parent 69dda82958
commit db29def11f

View File

@ -208,9 +208,7 @@ okvs_get
ldy #0
lda (PTR),y
beq @fail ; no keys, fail immediately
tax ; X = number of keys
inx
stx @maxkeys
sta @maxkeys ; A = number of keys
ldx #0
jsr incptr ; PTR -> first record
+LDPARAM 3