Used read length (and suppress warning)

This commit is contained in:
Jonathan Adamczewski
2014-03-24 00:16:35 -07:00
parent 88484cbd7d
commit 1d05c18c00
6 changed files with 39 additions and 11 deletions
+5 -1
View File
@@ -174,8 +174,12 @@ bool InputGeom::load(rcContext* ctx, const char* filePath)
fclose(fp);
return false;
}
fread(buf, bufSize, 1, fp);
size_t readLen = fread(buf, bufSize, 1, fp);
fclose(fp);
if (readLen != 1)
{
return false;
}
m_offMeshConCount = 0;
m_volumeCount = 0;