From: havoc Date: Sun, 14 Aug 2005 22:54:15 +0000 (+0000) Subject: fix a crash in q1bsp model stats printing in developer mode X-Git-Tag: xonotic-v0.1.0preview~4648 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff94d465c68bfd246952ca21de025b1ac8fde099;p=xonotic%2Fdarkplaces.git fix a crash in q1bsp model stats printing in developer mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5578 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 76500648..a19020c1 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3158,7 +3158,7 @@ void Mod_Q1BSP_Load(model_t *mod, void *buffer) //Mod_Q1BSP_ProcessLightList(); if (developer.integer) - Con_Printf("Some stats for q1bsp model \"%s\": %i faces, %i nodes, %i leafs, %i visleafs, %i visleafportals\n", loadmodel->name, loadmodel->num_surfaces, loadmodel->brush.num_nodes, loadmodel->brush.num_leafs, mod->brushq1.submodels[i].visleafs, loadmodel->brush.num_portals); + Con_Printf("Some stats for q1bsp model \"%s\": %i faces, %i nodes, %i leafs, %i visleafs, %i visleafportals\n", loadmodel->name, loadmodel->num_surfaces, loadmodel->brush.num_nodes, loadmodel->brush.num_leafs, mod->brush.num_pvsclusters, loadmodel->brush.num_portals); } static void Mod_Q2BSP_LoadEntities(lump_t *l)