mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-22 22:33:41 +00:00
off-by-1 bug in okvs_get
This commit is contained in:
parent
69dda82958
commit
db29def11f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user