Added check for selected item in save/load menu

https://mantis.zdoom.org/view.php?id=570
This commit is contained in:
alexey.lysiuk 2017-04-12 17:15:12 +03:00
parent df8fa1274a
commit d8d7dc973c

View file

@ -387,7 +387,7 @@ class LoadSaveMenu : ListMenu
{
if (ev.Type == UIEvent.Type_KeyDown)
{
if (Selected < manager.SavegameCount())
if (Selected != -1 && Selected < manager.SavegameCount())
{
switch (ev.KeyChar)
{