mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Added check for selected item in save/load menu
https://mantis.zdoom.org/view.php?id=570
This commit is contained in:
parent
df8fa1274a
commit
d8d7dc973c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue