and fix a NULL pointer causing typo...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Nov 2009 12:56:20 +0000 (12:56 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Nov 2009 12:56:20 +0000 (12:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9450 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c

index 1cc47d6..5392ae0 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -1039,7 +1039,7 @@ qboolean CL_BlendTagMatrix(entity_render_t *entrender, int tagindex, matrix4x4_t
        if(!model)
                return false;
        // blend the matrices
-       memset(&blendmatrix, 0, sizeof(blendmatrix));
+       memset(blendmatrix, 0, sizeof(*blendmatrix));
        for (j = 0;j < MAX_FRAMEBLENDS && entrender->frameblend[j].lerp > 0;j++)
        {
                matrix4x4_t tagmatrix;