From 2900b22335e9c5ff66cdba3c21ee9f471ea311a9 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Aug 2010 17:29:15 +0000 Subject: [PATCH] fix a C++ void pointer error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10382 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_brush.c b/model_brush.c index 3cfca8c9..70acef81 100644 --- a/model_brush.c +++ b/model_brush.c @@ -7382,7 +7382,7 @@ void Mod_OBJ_Load(dp_model_t *mod, void *buffer, void *bufferend) loadmodel->num_surfaces = 0; // allocate storage for the worst case number of surfaces, later we resize tempsurfaces = (msurface_t *)Mem_Alloc(loadmodel->mempool, numtextures * loadmodel->brush.numsubmodels * sizeof(msurface_t)); - submodelfirstsurface = Mem_Alloc(loadmodel->mempool, (loadmodel->brush.numsubmodels+1) * sizeof(int)); + submodelfirstsurface = (int *)Mem_Alloc(loadmodel->mempool, (loadmodel->brush.numsubmodels+1) * sizeof(int)); surface = tempsurfaces; for (submodelindex = 0;submodelindex < loadmodel->brush.numsubmodels;submodelindex++) { -- 2.39.2