mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Fixed crash when clicking on back button in main menu
If menu item selection overlaps back button in main menu, clicking on back button with mouse caused a crash See http://forum.zdoom.org/viewtopic.php?t=49711
This commit is contained in:
parent
75c5b563d1
commit
bad9961376
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ bool FListMenuItemSelectable::MouseEvent(int type, int x, int y)
|
|||
{
|
||||
if (type == DMenu::MOUSE_Release)
|
||||
{
|
||||
if (DMenu::CurrentMenu->MenuEvent(MKEY_Enter, true))
|
||||
if (NULL != DMenu::CurrentMenu && DMenu::CurrentMenu->MenuEvent(MKEY_Enter, true))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue