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:
		
							parent
							
								
									2dfec132f7
								
							
						
					
					
						commit
						d461239e74
					
				| @ -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 */ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user