From: eihrul Date: Tue, 9 Dec 2014 23:30:50 +0000 (+0000) Subject: fix Con_Printf in Mod_Q2BSP_LoadNodes X-Git-Tag: xonotic-v0.8.1~29^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4488d1563f5fa00036b2ccacfda344c3f0f254e;p=xonotic%2Fdarkplaces.git fix Con_Printf in Mod_Q2BSP_LoadNodes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12110 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 8605cbb0..5cc71a7e 100644 --- a/model_brush.c +++ b/model_brush.c @@ -4236,7 +4236,7 @@ static void Mod_Q2BSP_LoadNodes(sizebuf_t *sb) out->numsurfaces = (unsigned short)MSG_ReadLittleShort(sb); if (out->firstsurface + out->numsurfaces > (unsigned int)loadmodel->num_surfaces) { - Con_Printf("Mod_Q2BSP_LoadNodes: invalid surface index range %i+%i (file has only %i surfaces)\n", p, out->firstsurface, out->numsurfaces, loadmodel->num_surfaces); + Con_Printf("Mod_Q2BSP_LoadNodes: invalid surface index range %i+%i (file has only %i surfaces)\n", out->firstsurface, out->numsurfaces, loadmodel->num_surfaces); out->firstsurface = 0; out->numsurfaces = 0; }