fix uninitialized-variable issues (were unused initialized, but triggers some memory checking tools)

This commit is contained in:
Erwin Coumans
2017-06-09 21:19:02 -07:00
parent b361722500
commit 4a7469a1ba
3 changed files with 10 additions and 1 deletions

View File

@@ -64,9 +64,15 @@ struct PhysicsDirectInternalData
PhysicsDirectInternalData()
:m_hasStatus(false),
m_verboseOutput(false),
m_cachedCameraPixelsWidth(0),
m_cachedCameraPixelsHeight(0),
m_commandProcessor(NULL),
m_ownsCommandProcessor(false),
m_timeOutInSeconds(1e30)
{
memset(&m_command, 0, sizeof(m_command));
memset(&m_serverStatus, 0, sizeof(m_serverStatus));
memset(m_bulletStreamDataServerToClient, 0, sizeof(m_bulletStreamDataServerToClient));
}
};