From 40557ae1c6734b30e9335a339a97fbfa6dde8baf Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 30 Oct 2011 02:57:02 +0000 Subject: [PATCH] fix two more C++ compile errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11490 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_alias.c b/model_alias.c index 8d26e5b2..7a53d59e 100644 --- a/model_alias.c +++ b/model_alias.c @@ -650,7 +650,7 @@ static void Mod_MDLMD2MD3_TraceLine(dp_model_t *model, const frameblend_t *frame trace->realfraction = 1; trace->hitsupercontentsmask = hitsupercontentsmask; if (model->surfmesh.num_vertices > 1024) - vertex3f = Mem_Alloc(tempmempool, model->surfmesh.num_vertices * sizeof(float[3])); + vertex3f = (float *)Mem_Alloc(tempmempool, model->surfmesh.num_vertices * sizeof(float[3])); segmentmins[0] = min(start[0], end[0]) - 1; segmentmins[1] = min(start[1], end[1]) - 1; segmentmins[2] = min(start[2], end[2]) - 1; @@ -690,7 +690,7 @@ static void Mod_MDLMD2MD3_TraceBox(dp_model_t *model, const frameblend_t *frameb trace->realfraction = 1; trace->hitsupercontentsmask = hitsupercontentsmask; if (model->surfmesh.num_vertices > 1024) - vertex3f = Mem_Alloc(tempmempool, model->surfmesh.num_vertices * sizeof(float[3])); + vertex3f = (float *)Mem_Alloc(tempmempool, model->surfmesh.num_vertices * sizeof(float[3])); segmentmins[0] = min(start[0], end[0]) + boxmins[0] - 1; segmentmins[1] = min(start[1], end[1]) + boxmins[1] - 1; segmentmins[2] = min(start[2], end[2]) + boxmins[2] - 1; -- 2.39.2