1.1 --- a/core/CoreConfig.cpp Sun Aug 25 11:59:48 2013 -0700
1.2 +++ b/core/CoreConfig.cpp Sun Aug 25 12:13:30 2013 -0700
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * vim: set ts=4 :
1.6 + * vim: set ts=4 sw=4 tw=99 noet :
1.7 * =============================================================================
1.8 * SourceMod
1.9 * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
1.10 @@ -304,12 +304,10 @@
1.11
1.12 const char *CoreConfig::GetCoreConfigValue(const char *key)
1.13 {
1.14 - int *pKey = m_KeyValues.retrieve(key);
1.15 - if (pKey == NULL)
1.16 - {
1.17 + int address;
1.18 + if (!m_KeyValues.retrieve(key, &address))
1.19 return NULL;
1.20 - }
1.21 - return m_Strings.GetString(*pKey);
1.22 + return m_Strings.GetString(address);
1.23 }
1.24
1.25 bool SM_AreConfigsExecuted()