address 2 issues pointed out by PVS-Studio:

https://github.com/bulletphysics/bullet3/issues/1074
This commit is contained in:
Erwin Coumans committed 2017-04-17 10:01:44 -07:00
1 parent 3c22e10456
commit ad2099e107
2 files changed
+3 -1

No files matched your search

@@ -46,6 +46,7 @@ static GLInstanceGraphicsShape* LoadMeshFromSTL(const char* relativeFileName)
int expectedBinaryFileSize = numTriangles* 50 + 84;
if (expectedBinaryFileSize != size)
{
delete[] memoryBuffer;
return 0;
}
@@ -376,7 +376,8 @@ struct MyBroadphaseCallback : public btBroadphaseAabbCallback
if (bodyUniqueId >= 0)
{
m_bodyUniqueIds.push_back(bodyUniqueId);
m_links.push_back(mbl->m_link);
//it is not a multibody, so use -1 otherwise
m_links.push_back(-1);
}
return true;
}