fix incredibly stupid bug in Memory_Init, it was clearing the pool chain AFTER alloca...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Mar 2006 17:11:23 +0000 (17:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Mar 2006 17:11:23 +0000 (17:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6100 d7cf8633-e32d-0410-b094-e92efae38249

zone.c

diff --git a/zone.c b/zone.c
index 8eb9196..39369d5 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -461,9 +461,9 @@ Memory_Init
 */
 void Memory_Init (void)
 {
+       poolchain = NULL;
        tempmempool = Mem_AllocPool("Temporary Memory", POOLFLAG_TEMP, NULL);
        zonemempool = Mem_AllocPool("Zone", 0, NULL);
-       poolchain = NULL;
 }
 
 void Memory_Shutdown (void)