From 21c95196714d4f85ec92e9d243a41d5448e7c2e9 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 6 May 2011 20:56:35 +0000 Subject: [PATCH] add 2 missing casts git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11115 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0b21c729f7b68ebc477c7f924771c7af8cd960e0 --- protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol.c b/protocol.c index 2c155f37..b2d4a37a 100644 --- a/protocol.c +++ b/protocol.c @@ -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; } -- 2.39.2