- 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
parent 8ad9aafaa8
commit 841a69d527

View file

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