From: havoc Date: Sun, 30 Oct 2011 02:57:02 +0000 (+0000) Subject: fix two more C++ compile errors X-Git-Tag: xonotic-v0.6.0~163^2~67 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=40557ae1c6734b30e9335a339a97fbfa6dde8baf;p=xonotic%2Fdarkplaces.git fix two more C++ compile errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11490 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;