From da27b948bc67b804b7755478fd81ed7da31d6152 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 25 Mar 2015 15:28:54 -0500 Subject: Fix MDR surface indexes overflow check Also, use the check overflow macro like everywhere else. --- src/renderergl1/tr_animation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl1') diff --git a/src/renderergl1/tr_animation.c b/src/renderergl1/tr_animation.c index 5f401370..af93727f 100644 --- a/src/renderergl1/tr_animation.c +++ b/src/renderergl1/tr_animation.c @@ -347,7 +347,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface ) oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames + backEnd.currentEntity->e.oldframe * frameSize ); - RB_CheckOverflow( surface->numVerts, surface->numTriangles ); + RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 ); triangles = (int *) ((byte *)surface + surface->ofsTriangles); indexes = surface->numTriangles * 3; -- cgit