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; mDataStart = 12;
remain-=12; remain-=12;
//invalid/empty file?
if (remain < sizeof(bChunkInd))
return;
char *dataPtr = mFileBuffer+mDataStart; char *dataPtr = mFileBuffer+mDataStart;

View File

@@ -184,7 +184,6 @@ public:
// return non-null if there is a status, nullptr otherwise // return non-null if there is a status, nullptr otherwise
virtual const struct SharedMemoryStatus* processServerStatus() virtual const struct SharedMemoryStatus* processServerStatus()
{ {
printf("updating graphics!\n");
m_physicsServerExample->updateGraphics(); m_physicsServerExample->updateGraphics();
unsigned long long int curTime = m_clock.getTimeMicroseconds(); unsigned long long int curTime = m_clock.getTimeMicroseconds();