fix a bug in cvar hash handling
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Apr 2011 16:32:51 +0000 (16:32 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Apr 2011 16:32:51 +0000 (16:32 +0000)
causing loadconfig to mess up cvar hashing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11069 d7cf8633-e32d-0410-b094-e92efae38249

cvar.c

diff --git a/cvar.c b/cvar.c
index 221a524..707c54c 100644 (file)
--- a/cvar.c
+++ b/cvar.c
@@ -758,7 +758,7 @@ void Cvar_RestoreInitState(void)
                                        break;
                                }
                                else
-                                       cp2 = &c2->next;
+                                       cp2 = &c2->nextonhashchain;
                        }
                        // unlink struct from main list
                        *cp = c->next;