]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add 2 missing casts
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2011 20:56:35 +0000 (20:56 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 6 May 2011 20:54:03 +0000 (22:54 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11115 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0b21c729f7b68ebc477c7f924771c7af8cd960e0

protocol.c

index 2c155f37dce1865f41e573840fa2abe5339a0f1a..b2d4a37a901305c81e0eb6ca1bbc24b4de48c26e 100644 (file)
@@ -2489,7 +2489,7 @@ static void EntityState5_ReadUpdate(entity_state_t *s, int number)
                        break;
                case 4:
                        if (!cl.engineskeletonobjects)
-                               cl.engineskeletonobjects = Mem_Alloc(cls.levelmempool, sizeof(*cl.engineskeletonobjects) * MAX_EDICTS);
+                               cl.engineskeletonobjects = (skeleton_t *) Mem_Alloc(cls.levelmempool, sizeof(*cl.engineskeletonobjects) * MAX_EDICTS);
                        skeleton = &cl.engineskeletonobjects[number];
                        modelindex = MSG_ReadShort();
                        model = CL_GetModelByIndex(modelindex);
@@ -2499,7 +2499,7 @@ static void EntityState5_ReadUpdate(entity_state_t *s, int number)
                        if (!skeleton->relativetransforms || skeleton->model != model)
                        {
                                skeleton->model = model;
-                               skeleton->relativetransforms = Mem_Realloc(cls.levelmempool, skeleton->relativetransforms, sizeof(*skeleton->relativetransforms) * skeleton->model->num_bones);
+                               skeleton->relativetransforms = (matrix4x4_t *) Mem_Realloc(cls.levelmempool, skeleton->relativetransforms, sizeof(*skeleton->relativetransforms) * skeleton->model->num_bones);
                                for (bonenum = 0;bonenum < model->num_bones;bonenum++)
                                        skeleton->relativetransforms[bonenum] = identitymatrix;
                        }