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.8.0~96^2~280 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48f3b6c4247e3b902868b1927ed2e12258f707c9;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 --- 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);