From: bones_was_here Date: Tue, 6 Feb 2024 16:16:07 +0000 (+1000) Subject: Remove a bit of cruft left in Cvar_RestoreInitState() X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c4df1aca3001757159902f0d815410a87c6b18a;p=xonotic%2Fdarkplaces.git Remove a bit of cruft left in Cvar_RestoreInitState() A leftover from debugging 32c99c7b0a58545b273fa713d81d6bbfb3b8ebe6 Signed-off-by: bones_was_here --- diff --git a/cvar.c b/cvar.c index ce8d89ed..07c9842d 100644 --- 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