diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-04-17 14:09:40 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-04-17 14:09:40 +0400 |
commit | 38d1d10db01c2eae9b0763ff015feb674abce98d (patch) | |
tree | dc90b5d2138de4c38778f28c69ac655e12e8249d /src/common/cvar.c | |
parent | eef1bf8b1843ecbf3d43b8c7d138b0b2394d7f26 (diff) |
Ignore ‘game’ variable when doing ‘resetall’.
Changing ‘game’ from inside the loop is especially bad since it triggers
config execution.
Diffstat (limited to 'src/common/cvar.c')
-rw-r--r-- | src/common/cvar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/cvar.c b/src/common/cvar.c index 065ee8e..b0c7c42 100644 --- a/src/common/cvar.c +++ b/src/common/cvar.c @@ -1100,6 +1100,8 @@ static void Cvar_ResetAll_f(void) continue; if ((var->flags & CVAR_NOSET) && com_initialized) continue; + if (var == fs_game) + continue; Cvar_SetByVar(var, var->default_string, Cmd_From()); } } |