fix crash when entering browse mode from help screen via left arrow

This commit is contained in:
4am 2019-10-13 22:22:40 -04:00
parent f1bcdb32fc
commit 8c72e6b137

View File

@ -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