From: terencehill Date: Wed, 25 Apr 2012 22:23:34 +0000 (+0200) Subject: Fix cvar_settemp_restore not counting the number of restored cvars X-Git-Tag: xonotic-v0.7.0~194^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77a2ed27aa0be22848ec3abbe0f7068c838044cb;p=xonotic%2Fxonotic-data.pk3dir.git Fix cvar_settemp_restore not counting the number of restored cvars --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index 94e1e6461..ec72290e8 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -902,6 +902,7 @@ float cvar_settemp_restore() { cvar_set(e.netname, e.message); remove(e); + ++i; } else print(sprintf("Error: cvar %s doesn't exist anymore! It can still be restored once it's manually recreated.\n", e.netname));