]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cvar.c
command line option -readonly to turn off all writing
[xonotic/darkplaces.git] / cvar.c
diff --git a/cvar.c b/cvar.c
index 521e2842ab3e0e93377555c3e38c182f031ce32c..b88aafd0374d761bb47dd97697fb40f44f729feb 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -747,6 +747,7 @@ void Cvar_RestoreInitState(void)
                        if (!(c->flags & CVAR_ALLOCATED))
                        {
                                Con_DPrintf("Cvar_RestoreInitState: Unable to destroy cvar \"%s\", it was registered after init!\n", c->name);
+                               cp = &c->next;
                                continue;
                        }
                        // remove this cvar, it did not exist at init