fix typo
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Oct 2010 13:19:52 +0000 (13:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 17 Oct 2010 13:19:52 +0000 (13:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10542 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 26ef8ec..c5d46a7 100644 (file)
@@ -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);