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.0~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=738be11975e3dc9c794190df53adc136be0f76e6;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 ::stable-branch::merge=b4488d1563f5fa00036b2ccacfda344c3f0f254e --- 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; }