mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-17 05:09:02 +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
|
||||
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
|
||||
ldx GameCount
|
||||
+ ldx GameCount
|
||||
|
||||
.decindex
|
||||
dex
|
||||
|
Loading…
Reference in New Issue
Block a user