mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-17 18:30:41 +00:00
fix crash when entering browse mode from help screen via left arrow
This commit is contained in:
parent
f1bcdb32fc
commit
8c72e6b137
@ -71,8 +71,16 @@ OnBrowseSearch
|
|||||||
|
|
||||||
OnBrowsePrevious
|
OnBrowsePrevious
|
||||||
ldx gGameToLaunch
|
ldx gGameToLaunch
|
||||||
|
inx ; Slightly pathological case: there may be no
|
||||||
|
; current game by the time we get here, e.g.
|
||||||
|
; if we entered browse mode by pressing left
|
||||||
|
; or up arrow from the global help screen.
|
||||||
|
; In this case, pretend we were at game 0 and
|
||||||
|
; continue with the key handler logic.
|
||||||
|
beq +
|
||||||
|
dex
|
||||||
bne .decindex
|
bne .decindex
|
||||||
ldx GameCount
|
+ ldx GameCount
|
||||||
|
|
||||||
.decindex
|
.decindex
|
||||||
dex
|
dex
|
||||||
|
Loading…
x
Reference in New Issue
Block a user