mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Fixed rare crash when menu is closed from Ticker() function
https://forum.zdoom.org/viewtopic.php?t=59112
This commit is contained in:
parent
13c4e58c3d
commit
56f656516d
1 changed files with 4 additions and 0 deletions
|
@ -735,7 +735,11 @@ void M_Ticker (void)
|
|||
if (CurrentMenu != nullptr && menuactive != MENU_Off)
|
||||
{
|
||||
CurrentMenu->CallTicker();
|
||||
}
|
||||
|
||||
// Check again because menu could be closed from Ticker()
|
||||
if (CurrentMenu != nullptr && menuactive != MENU_Off)
|
||||
{
|
||||
for (int i = 0; i < NUM_MKEYS; ++i)
|
||||
{
|
||||
if (MenuButtons[i].bDown)
|
||||
|
|
Loading…
Reference in a new issue