Skip to content

Commit

Permalink
Fixed crash when mouse is moved right after saving of game has been t…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Apr 25, 2017
1 parent 2bb16c6 commit cc786ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions wadsrc/static/zscript/menu/loadsavemenu.txt
Expand Up @@ -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)
Expand Down

0 comments on commit cc786ba

Please sign in to comment.