From b4488d1563f5fa00036b2ccacfda344c3f0f254e Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 9 Dec 2014 23:30:50 +0000 Subject: [PATCH] fix Con_Printf in Mod_Q2BSP_LoadNodes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12110 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 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; } -- 2.39.2