From 77a2ed27aa0be22848ec3abbe0f7068c838044cb Mon Sep 17 00:00:00 2001
From: terencehill <piuntn@gmail.com>
Date: Thu, 26 Apr 2012 00:23:34 +0200
Subject: [PATCH] Fix cvar_settemp_restore not counting the number of restored
 cvars

---
 qcsrc/common/util.qc | 1 +
 1 file changed, 1 insertion(+)

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));
-- 
2.39.5