Skip to content
Permalink
Browse files

- 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
  • Loading branch information...
alexey-lysiuk committed Jun 23, 2019
1 parent 8ad9aaf commit 841a69d5276ad2b499fe79baf69e8246f5f7a6d5
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/menu/messagebox.cpp
@@ -135,7 +135,8 @@ void ActivateEndGameMenu()
M_ClearMenus();
if (!netgame)
{
G_CheckDemoStatus();
if (demorecording)
G_CheckDemoStatus();
D_StartTitle();
}
});

0 comments on commit 841a69d

Please sign in to comment.
You can’t perform that action at this time.