Q3data: Fix warning passing unsigned short * to parameter of type short *

This commit is contained in:
Pan7 2017-08-18 20:00:41 +02:00
parent 16d42f3e64
commit d1c1de1253
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ static int ReadString( FILE *fp, char *buffer ){
return bytesRead;
}
static int ReadChunkAndLength( FILE *fp, short *chunk, long *len ){
static int ReadChunkAndLength( FILE *fp, unsigned short *chunk, long *len ){
if ( fread( chunk, sizeof( short ), 1, fp ) != 1 ) {
return 0;
}

View file

@ -89,7 +89,7 @@ polyset_t *Polyset_LoadSets( const char *file, int *numpolysets, int maxTrisPerS
}
else{
Error( "TRI files no longer supported" );
return;
return NULL;
}
// TRI_LoadPolysets( file, &psets, numpolysets );