Skip to content

Commit

Permalink
don't unregister cvars on shutdown as apparently that's broken (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
p0358 committed Oct 23, 2024
1 parent 8207f03 commit 9913578
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bmedll/ConCommandManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ void ConCommandManager::UnregisterAllCommands()
ConCommandManager::~ConCommandManager()
{
SPDLOG_LOGGER_DEBUG(m_logger, "ConCommandManager destructor");
//if (!g_isShuttingDown)
// Note: ConVar/ConCommand unregistration doesn't work properly, they still appear in FactoryInternalIterator
// and can cause crashes on shutdown
if (!g_isShuttingDown)
UnregisterAllCommands();
}

Expand Down

0 comments on commit 9913578

Please sign in to comment.