From 04f327677d1be424155c1cca8f5fd30890681050 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 22 Jul 2020 16:26:27 +0300 Subject: [PATCH] - fixed incomplete special menu handling Redirections to textual main menu and new player menu were not functional https://forum.zdoom.org/viewtopic.php?t=69369 --- src/menu/doommenu.cpp | 2 +- src/menu/menu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/doommenu.cpp b/src/menu/doommenu.cpp index c2dab0a4e1..e28eebc10c 100644 --- a/src/menu/doommenu.cpp +++ b/src/menu/doommenu.cpp @@ -83,7 +83,7 @@ extern bool hud_toggled; FNewGameStartup NewGameStartupInfo; -bool M_SetSpecialMenu(FName menu, int param) +bool M_SetSpecialMenu(FName& menu, int param) { // some menus need some special treatment switch (menu.GetIndex()) diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index 0bac3a57d4..62cfc482af 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -416,7 +416,7 @@ DEFINE_ACTION_FUNCTION(DMenu, ActivateMenu) // //============================================================================= -bool M_SetSpecialMenu(FName menu, int param); // game specific checks +bool M_SetSpecialMenu(FName& menu, int param); // game specific checks void M_SetMenu(FName menu, int param) {