Fixed amb362 - convars could sometimes appear more than once in convar list

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40873
This commit is contained in:
Scott Ehlert 2007-05-31 21:35:33 +00:00
parent 2dfec132f7
commit d461239e74

View File

@ -415,6 +415,9 @@ void ConVarManager::AddConVarToPluginList(IPluginContext *pContext, const ConVar
{
pConVarList = new ConVarList();
plugin->SetProperty("ConVarList", pConVarList);
} else if (pConVarList->find(pConVar) != pConVarList->end()) {
/* If convar is already in list, then don't add it */
return;
}
/* Insert convar into list which is sorted alphabetically */