Fixed another issue with crashing on exit in relation to convars

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401154
This commit is contained in:
Scott Ehlert 2007-07-23 19:34:26 +00:00
parent 172b3e8ab8
commit 416752a0cc

View File

@ -166,7 +166,7 @@ void ConVarManager::OnMetamodPluginUnloaded(PluginId id)
pInfo = (*i); pInfo = (*i);
cvarName = pInfo->name; cvarName = pInfo->name;
if (!icvar->FindVar(cvarName)) if (cvarName && !icvar->FindVar(cvarName))
{ {
m_IgnoreHandle = true; m_IgnoreHandle = true;
g_HandleSys.FreeHandle(pInfo->handle, &sec); g_HandleSys.FreeHandle(pInfo->handle, &sec);