Fix help menu not returning to main menu.

This commit is contained in:
Mari the Deer 2021-05-17 21:41:01 +02:00
commit 7f98c28089
3 changed files with 6 additions and 2 deletions

View file

@ -310,8 +310,11 @@ Class SWWMStaticHandler : StaticEventHandler
Menu cur = Menu.GetCurrentMenu();
if ( cur is 'ReadThisMenu' )
{
Menu oldpt = cur.mParentMenu;
cur.Close();
Menu.SetMenu('SWWMHelpMenu');
cur = Menu.GetCurrentMenu();
if ( cur ) cur.mParentMenu = oldpt;
}
// Fancy crash effect
if ( (gamestate == GS_LEVEL) || (gamestate == GS_TITLELEVEL) )