Fix going back, fix replay hut segfaulting
This commit is contained in:
parent
666b9f4582
commit
271eaeef6f
3 changed files with 9 additions and 2 deletions
|
|
@ -718,6 +718,7 @@ struct menu_routine_s const MENU_ROUTINES[] = {
|
|||
{ "BLANCREDITS", &MR_BlanCredits },
|
||||
{ "HANDLEADDONS", &MR_HandleAddons },
|
||||
{ "SELECTABLECLEARMENUS", &MR_SelectableClearMenus },
|
||||
{ "GOBACK", &MR_GoBack },
|
||||
{ "MODEATTACKRETRY", &MR_ModeAttackRetry },
|
||||
{ "MODEATTACKENDGAME", &MR_ModeAttackEndGame },
|
||||
{ "RETRY", &MR_Retry },
|
||||
|
|
|
|||
|
|
@ -4162,8 +4162,6 @@ INT32 MR_QuitReplayHut(INT32 choice)
|
|||
{
|
||||
(void)choice;
|
||||
|
||||
M_ClearMenus(false);
|
||||
|
||||
if (demolist)
|
||||
Z_Free(demolist);
|
||||
demolist = NULL;
|
||||
|
|
@ -4623,6 +4621,13 @@ INT32 MR_SelectableClearMenus(INT32 choice)
|
|||
return true;
|
||||
}
|
||||
|
||||
INT32 MR_GoBack(INT32 choice)
|
||||
{
|
||||
(void)choice;
|
||||
M_ExitMenu();
|
||||
return true;
|
||||
}
|
||||
|
||||
void M_RefreshPauseMenu(void)
|
||||
{
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
|
|
|
|||
|
|
@ -276,6 +276,7 @@ INT32 MR_Credits(INT32 choice);
|
|||
INT32 MR_BlanCredits(INT32 choice);
|
||||
INT32 MR_HandleAddons(INT32 choice);
|
||||
INT32 MR_SelectableClearMenus(INT32 choice);
|
||||
INT32 MR_GoBack(INT32 choice);
|
||||
INT32 MR_ModeAttackEndGame(INT32 choice);
|
||||
INT32 MR_Retry(INT32 choice);
|
||||
INT32 MR_EndGame(INT32 choice);
|
||||
|
|
|
|||
Loading…
Reference in a new issue