CRC the right amount of bytes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2499 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2007-05-02 02:38:41 +00:00
parent 2e8fe03892
commit a699f6f0ff

View file

@ -673,7 +673,7 @@ void Huff_Init( int *huffCounts ) {
} }
huffCounts[i] = LittleLong(huffCounts[i]); huffCounts[i] = LittleLong(huffCounts[i]);
} }
madetable=Com_BlockChecksum(huffCounts, sizeof(huffCounts)); madetable=Com_BlockChecksum(huffCounts, sizeof(*huffCounts)*256);
for(i=0;i<256;i++) for(i=0;i<256;i++)
huffCounts[i] = LittleLong(huffCounts[i]); huffCounts[i] = LittleLong(huffCounts[i]);
} }