add 2 missing casts
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2011 20:56:35 +0000 (20:56 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2011 20:56:35 +0000 (20:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11115 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index 2c155f3..b2d4a37 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;
                        }