From 48f3b6c4247e3b902868b1927ed2e12258f707c9 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 13 Mar 2012 02:26:31 +0000 Subject: [PATCH] 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 --- svvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2