From: havoc Date: Tue, 13 Mar 2012 02:26:31 +0000 (+0000) Subject: use prog->progs_mempool for server DP_SKELETONOBJECTS storage, not X-Git-Tag: xonotic-v0.7.0~201 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b09cc15b301af2e4ef13d015e93c69f82e915a9b;p=xonotic%2Fdarkplaces.git use prog->progs_mempool for server DP_SKELETONOBJECTS storage, not cls.levelmempool git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11756 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=48f3b6c4247e3b902868b1927ed2e12258f707c9 --- diff --git a/svvm_cmds.c b/svvm_cmds.c index 71c1c30b..a850abe3 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -2867,7 +2867,7 @@ static void VM_SV_skel_create(prvm_prog_t *prog) break; if (i == MAX_EDICTS) return; - prog->skeletons[i] = skeleton = (skeleton_t *)Mem_Alloc(cls.levelmempool, sizeof(skeleton_t) + model->num_bones * sizeof(matrix4x4_t)); + prog->skeletons[i] = skeleton = (skeleton_t *)Mem_Alloc(prog->progs_mempool, sizeof(skeleton_t) + model->num_bones * sizeof(matrix4x4_t)); PRVM_G_FLOAT(OFS_RETURN) = i + 1; skeleton->model = model; skeleton->relativetransforms = (matrix4x4_t *)(skeleton+1);