From: divverent Date: Fri, 21 May 2010 21:12:08 +0000 (+0000) Subject: fix a wrong mempool use in Mod_Alias_AnimateVertices that crashed on dedicated server... X-Git-Tag: xonotic-v0.1.0preview~230^2~270 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e69b63d410e8f60da39c370027fc5daea820a7a8;p=xonotic%2Fdarkplaces.git 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 --- 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;