fix loading of empty file (after header)

remove debug printf
This commit is contained in:
erwincoumans
2017-09-17 15:44:14 -07:00
parent f4b28dddce
commit 2919e51d9d
2 changed files with 3 additions and 1 deletions

View File

@@ -128,6 +128,9 @@ void btBulletFile::parseData()
mDataStart = 12;
remain-=12;
//invalid/empty file?
if (remain < sizeof(bChunkInd))
return;
char *dataPtr = mFileBuffer+mDataStart;