]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 13 Mar 2012 06:45:04 +0000 (07:45 +0100)
cls.levelmempool

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11756 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=48f3b6c4247e3b902868b1927ed2e12258f707c9

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);