mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed a potential crash in GamelistBase.
This commit is contained in:
parent
cc8123f5a6
commit
afa6221582
|
@ -428,7 +428,7 @@ bool GamelistBase::input(InputConfig* config, Input input)
|
|||
setCursor(getFirstEntry());
|
||||
view->setCursor(view->getFirstEntry());
|
||||
}
|
||||
else if (selectLastEntry) {
|
||||
else if (selectLastEntry && mList.size() > 0) {
|
||||
setCursor(getLastEntry());
|
||||
view->setCursor(view->getLastEntry());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue