mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
The accessor now adds the FCVAR_GAMEDLL flag to each command, which prevents crashes on exit
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4017
This commit is contained in:
parent
7b842efe0d
commit
2617dfe79a
@ -20,6 +20,9 @@ SMConVarAccessor g_SMConVarAccessor;
|
||||
|
||||
bool SMConVarAccessor::RegisterConCommandBase(ConCommandBase *pCommand)
|
||||
{
|
||||
// Add the FCVAR_GAMEDLL flag
|
||||
// => No crash on exit!
|
||||
pCommand->AddFlags(FCVAR_GAMEDLL);
|
||||
pCommand->SetNext( NULL );
|
||||
g_Engine.icvar->RegisterConCommandBase(pCommand);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user