]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Remove a bit of cruft left in Cvar_RestoreInitState()
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 16:16:07 +0000 (02:16 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Tue, 6 Feb 2024 16:16:07 +0000 (02:16 +1000)
A leftover from debugging 32c99c7b0a58545b273fa713d81d6bbfb3b8ebe6

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cvar.c

diff --git a/cvar.c b/cvar.c
index ce8d89ed400e64d650bd534b8493731ac7a3c4e2..07c9842d3c8f1d192741bb57ef53cec95106f809 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -901,9 +901,8 @@ void Cvar_SaveInitState(cvar_state_t *cvars)
 void Cvar_RestoreInitState(cvar_state_t *cvars)
 {
        cvar_t *c, *cp;
-       int i = 0;
 
-       for (cp = cvars->vars; (c = cp);++i)
+       for (cp = cvars->vars; (c = cp);)
        {
                cp = c->next; // get next cvar now in case we delete this cvar