summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-04-17 14:09:40 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-04-17 14:09:40 +0400
commit38d1d10db01c2eae9b0763ff015feb674abce98d (patch)
treedc90b5d2138de4c38778f28c69ac655e12e8249d /src
parenteef1bf8b1843ecbf3d43b8c7d138b0b2394d7f26 (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')
-rw-r--r--src/common/cvar.c2
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());
}
}