From 200b74a3515879304630e189b0c8ecc9b267a218 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 17 Oct 2010 13:19:52 +0000 Subject: [PATCH] fix typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10542 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 26ef8eca..c5d46a79 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -11123,7 +11123,7 @@ void RSurf_ActiveCustomEntity(const matrix4x4_t *matrix, const matrix4x4_t *inve rsurface.ent_flags = entflags; rsurface.modelnumvertices = numvertices; rsurface.modelnumtriangles = numtriangles; - R_Mesh_ResizeArrays(rsurface.modelnumvertices, rsurface.modelnumtriangles); + R_Mesh_ResizeArrays(max(rsurface.modelnumvertices, rsurface.modelnumtriangles)); rsurface.matrix = *matrix; rsurface.inversematrix = *inversematrix; rsurface.matrixscale = Matrix4x4_ScaleFromMatrix(&rsurface.matrix); -- 2.39.2