Ignored fread fix

This commit is contained in:
mazmazz 2018-12-27 00:01:51 -05:00
parent d5a0b2df4d
commit 72c2b28328

View file

@ -309,7 +309,7 @@ model_t *MD2_LoadModel(const char *fileName, int ztag, boolean useFloat)
// read in file
buffer = malloc(fileLen);
fread(buffer, fileLen, 1, f);
if (fread(buffer, fileLen, 1, f)) { } // squash ignored fread error
fclose(f);
// get pointer to file header