]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a crash in q1bsp model stats printing in developer mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Aug 2005 22:54:15 +0000 (22:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Aug 2005 22:54:15 +0000 (22:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5578 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 765006484aded14b2359d0a1e8227a952877f948..a19020c1deb2ec768c16490f99729819b1b1dced 100644 (file)
@@ -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)