- fixed: Opening a non-existent menu left the engine in an invalid state.

This commit is contained in:
Christoph Oelckers 2016-05-18 12:02:54 +02:00
parent 3dcb05e5d2
commit 7642c2cdaa
1 changed files with 1 additions and 0 deletions

View File

@ -458,6 +458,7 @@ void M_SetMenu(FName menu, int param)
} }
} }
Printf("Attempting to open menu of unknown type '%s'\n", menu.GetChars()); Printf("Attempting to open menu of unknown type '%s'\n", menu.GetChars());
M_ClearMenus();
} }
//============================================================================= //=============================================================================