mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-12 21:38:18 +00:00
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