fix some accesses beyond the end of arrays spotted via clang

This commit is contained in:
Jonathan Gray 2013-04-28 18:46:15 +10:00
parent 9eebe9bece
commit 0b512e60b6

View file

@ -646,7 +646,7 @@ void RB_CalcColorFromOneMinusEntity( unsigned char *dstColors )
{
int i;
int *pColors = ( int * ) dstColors;
unsigned char invModulate[3];
unsigned char invModulate[4];
int c;
if ( !backEnd.currentEntity )