diff --git a/code/qcommon/cvar.c b/code/qcommon/cvar.c index 5d52803f..8bd1b271 100644 --- a/code/qcommon/cvar.c +++ b/code/qcommon/cvar.c @@ -382,12 +382,12 @@ cvar_t *Cvar_Get( const char *var_name, const char *var_value, int flags ) { var->latchedString = NULL; // otherwise cvar_set2 would free it Cvar_Set2( var_name, s, qtrue ); Z_Free( s ); - - // ZOID--needs to be set so that cvars the game sets as - // SERVERINFO get sent to clients - cvar_modifiedFlags |= flags; } + // ZOID--needs to be set so that cvars the game sets as + // SERVERINFO get sent to clients + cvar_modifiedFlags |= flags; + return var; }