Fixed some valgrind warnings about uninitialized variables.

This commit is contained in:
leo 2013-07-08 18:09:44 +00:00
parent ddb7a49d94
commit 4ebbd438d7
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,9 @@ lcMesh::lcMesh()
{ {
mSections = NULL; mSections = NULL;
mNumSections = 0; mNumSections = 0;
mNumVertices = 0;
mNumTexturedVertices = 0;
mIndexType = 0;
} }
lcMesh::~lcMesh() lcMesh::~lcMesh()

View file

@ -68,6 +68,8 @@ Project::Project()
m_pBackground = new lcTexture(); m_pBackground = new lcTexture();
m_nAutosave = Sys_ProfileLoadInt ("Settings", "Autosave", 10); m_nAutosave = Sys_ProfileLoadInt ("Settings", "Autosave", 10);
m_nMouse = Sys_ProfileLoadInt ("Default", "Mouse", 11); m_nMouse = Sys_ProfileLoadInt ("Default", "Mouse", 11);
m_nDownX = 0;
m_nDownY = 0;
strcpy(m_strModelsPath, Sys_ProfileLoadString ("Default", "Projects", "")); strcpy(m_strModelsPath, Sys_ProfileLoadString ("Default", "Projects", ""));
if (messenger == NULL) if (messenger == NULL)