*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@743 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ struct md2 : vertmodel
|
||||
fseek(file, header.offsetglcommands, SEEK_SET);
|
||||
int numglcommands = fread(glcommands, sizeof(int), header.numglcommands, file);
|
||||
endianswap(glcommands, sizeof(int), numglcommands);
|
||||
glcommands[numglcommands < header.numglcommands ? numglcommands : numglcommands-1] = 0;
|
||||
if(numglcommands < header.numglcommands) memset(&glcommands[numglcommands], 0, (header.numglcommands-numglcommands)*sizeof(int));
|
||||
|
||||
vector<tcvert> tcgen;
|
||||
vector<tri> trigen;
|
||||
|
||||
Reference in New Issue
Block a user