Merge pull request #409 from alexey-lysiuk/back_overlap_crash

Fixed crash when clicking on back button in main menu
This commit is contained in:
coelckers 2015-10-10 16:13:48 +02:00
commit 3b2e8f3401

View file

@ -491,7 +491,7 @@ bool FListMenuItemSelectable::MouseEvent(int type, int x, int y)
{ {
if (type == DMenu::MOUSE_Release) if (type == DMenu::MOUSE_Release)
{ {
if (DMenu::CurrentMenu->MenuEvent(MKEY_Enter, true)) if (NULL != DMenu::CurrentMenu && DMenu::CurrentMenu->MenuEvent(MKEY_Enter, true))
{ {
return true; return true;
} }