]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix cvar_settemp_restore not counting the number of restored cvars
authorterencehill <piuntn@gmail.com>
Wed, 25 Apr 2012 22:23:34 +0000 (00:23 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 25 Apr 2012 22:23:34 +0000 (00:23 +0200)
qcsrc/common/util.qc

index 94e1e64611760d3cafead8b8dccf4508b8a98ae0..ec72290e87ebbf1a937ced62d6daafed1e920950 100644 (file)
@@ -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));