Fixed CVARs not registering properly (hullu)

This commit is contained in:
David Anderson 2004-09-21 15:49:36 +00:00
parent 4382158b88
commit dde43b6e0d

View File

@ -1749,7 +1749,11 @@ static cell AMX_NATIVE_CALL register_cvar(AMX *amx, cell *params) /* 3 param */
g_cvars.put( cvar );
if ( CVAR_GET_POINTER(temp) == 0 )
CVAR_REGISTER( cvar->getCvar() );
{
static cvar_t cvar_reg_helper;
cvar_reg_helper = *(cvar->getCvar());
CVAR_REGISTER( &cvar_reg_helper );
}
CVAR_SET_STRING( temp ,get_amxstring(amx,params[2],1,i));
return 1;