Fixed crash when mouse is moved right after saving of game has been triggered

https://forum.zdoom.org/viewtopic.php?t=56060
https://forum.zdoom.org/viewtopic.php?t=49369&start=105#p992821
https://forum.drdteam.org/viewtopic.php?t=7607
This commit is contained in:
alexey.lysiuk 2017-04-25 10:57:55 +03:00
parent 2bb16c684f
commit cc786bada6

View file

@ -500,6 +500,24 @@ class SaveMenu : LoadSaveMenu
//
//=============================================================================
override bool MouseEvent(int type, int x, int y)
{
if (mSaveName.Length() > 0)
{
// Do not process events when saving is in progress to avoid update of the current index,
// i.e. Selected member variable must remain unchanged
return true;
}
return Super.MouseEvent(type, x, y);
}
//=============================================================================
//
//
//
//=============================================================================
override bool OnUIEvent(UIEvent ev)
{
if (ev.Type == UIEvent.Type_KeyDown)