core/ConVarManager.cpp
changeset 1544 feff70182207
parent 1541 e46ad208b9b4
child 1578 378b2e4b1f19
     1.1 --- a/core/ConVarManager.cpp	Sun Oct 14 01:09:40 2007 +0000
     1.2 +++ b/core/ConVarManager.cpp	Sun Oct 14 02:30:16 2007 +0000
     1.3 @@ -527,13 +527,16 @@
     1.4  }
     1.5  
     1.6  #if defined ORANGEBOX_BUILD
     1.7 -void ConVarManager::OnConVarChanged(IConVar *pConVar, const char *oldValue, float flOldValue)
     1.8 +void ConVarManager::OnConVarChanged(IConVar *pIConVar, const char *oldValue, float flOldValue)
     1.9  #else
    1.10  void ConVarManager::OnConVarChanged(ConVar *pConVar, const char *oldValue)
    1.11  #endif
    1.12  {
    1.13  	/* If the values are the same, exit early in order to not trigger callbacks */
    1.14 -	if (strcmp(reinterpret_cast<ConVar *>(pConVar)->GetString(), oldValue) == 0)
    1.15 +#if defined ORANGEBOX_BUILD
    1.16 +	ConVar *pConVar = (ConVar *)pIConVar;
    1.17 +#endif
    1.18 +	if (strcmp(pConVar->GetString(), oldValue) == 0)
    1.19  	{
    1.20  		return;
    1.21  	}