fix loading of empty file (after header)
remove debug printf
This commit is contained in:
@@ -128,6 +128,9 @@ void btBulletFile::parseData()
|
||||
mDataStart = 12;
|
||||
remain-=12;
|
||||
|
||||
//invalid/empty file?
|
||||
if (remain < sizeof(bChunkInd))
|
||||
return;
|
||||
|
||||
char *dataPtr = mFileBuffer+mDataStart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user