]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a wrong mempool use in Mod_Alias_AnimateVertices that crashed on dedicated server...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 May 2010 21:12:08 +0000 (21:12 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 May 2010 21:12:08 +0000 (21:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10208 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index 13ea8bf3407f04de66a8a482563d526ee755e221..b87e65bb5e1b37f6c9a1df402f171093af817165 100644 (file)
@@ -129,9 +129,9 @@ void Mod_Skeletal_AnimateVertices(const dp_model_t * RESTRICT model, const frame
        if (maxbonepose < model->num_bones*2 + model->surfmesh.num_blends)
        {
                if (bonepose)
-                       Mem_Free(bonepose);
+                       Z_Free(bonepose);
                maxbonepose = model->num_bones*2 + model->surfmesh.num_blends;
-               bonepose = (float (*)[12])Mem_Alloc(r_main_mempool, maxbonepose * sizeof(float[12]));
+               bonepose = (float (*)[12])Z_Malloc(maxbonepose * sizeof(float[12]));
        }
 
        boneposerelative = bonepose + model->num_bones;