- fixed: endgame menu no longer resets player's userinfo

User CVARs can be stored in member variables for quicker access
Unconditional call to G_CheckDemoStatus() destructs and recreates such CVARs
Dangling pointers could be accessed during the last game tick, e.g. from event handlers

https://forum.zdoom.org/viewtopic.php?t=65150
This commit is contained in:
alexey.lysiuk 2019-06-23 10:48:17 +03:00 committed by drfrag
parent 3923a92f11
commit 102cd3855c

View file

@ -139,7 +139,8 @@ void ActivateEndGameMenu()
M_ClearMenus();
if (!netgame)
{
G_CheckDemoStatus();
if (demorecording)
G_CheckDemoStatus();
D_StartTitle();
}
});