mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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());
|
setCursor(getFirstEntry());
|
||||||
view->setCursor(view->getFirstEntry());
|
view->setCursor(view->getFirstEntry());
|
||||||
}
|
}
|
||||||
else if (selectLastEntry) {
|
else if (selectLastEntry && mList.size() > 0) {
|
||||||
setCursor(getLastEntry());
|
setCursor(getLastEntry());
|
||||||
view->setCursor(view->getLastEntry());
|
view->setCursor(view->getLastEntry());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue