Switch ConVar, CoreConfig off KTrie (bug 5884 part 8, r=ds).

This commit is contained in:
David Anderson
2013-08-25 12:13:30 -07:00
parent 3850765759
commit 77c7b312ea
4 changed files with 16 additions and 22 deletions
+4 -6
View File
@@ -1,5 +1,5 @@
/**
* vim: set ts=4 :
* vim: set ts=4 sw=4 tw=99 noet :
* =============================================================================
* SourceMod
* Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
@@ -304,12 +304,10 @@ ConfigResult CoreConfig::SetConfigOption(const char *option, const char *value,
const char *CoreConfig::GetCoreConfigValue(const char *key)
{
int *pKey = m_KeyValues.retrieve(key);
if (pKey == NULL)
{
int address;
if (!m_KeyValues.retrieve(key, &address))
return NULL;
}
return m_Strings.GetString(*pKey);
return m_Strings.GetString(address);
}
bool SM_AreConfigsExecuted()