From e69b63d410e8f60da39c370027fc5daea820a7a8 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 21 May 2010 21:12:08 +0000 Subject: [PATCH] fix a wrong mempool use in Mod_Alias_AnimateVertices that crashed on dedicated server due to r_main_mempool not existing there git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10208 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_alias.c b/model_alias.c index 13ea8bf3..b87e65bb 100644 --- a/model_alias.c +++ b/model_alias.c @@ -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; -- 2.39.2