]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use prog->progs_mempool for server DP_SKELETONOBJECTS storage, not
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Mar 2012 02:26:31 +0000 (02:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Mar 2012 02:26:31 +0000 (02:26 +0000)
cls.levelmempool

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11756 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index 71c1c30b76eec5f3cc83a951f839fbd56c57371e..a850abe37024d73716e9b8dbbf1f501a1e9084fe 100644 (file)
@@ -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);