From 4ebbd438d73e4bc78d8878fbf3ca76a9d3dac8f5 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 8 Jul 2013 18:09:44 +0000 Subject: [PATCH] Fixed some valgrind warnings about uninitialized variables. --- common/lc_mesh.cpp | 3 +++ common/project.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/lc_mesh.cpp b/common/lc_mesh.cpp index fd87f4ae..bef6ef55 100644 --- a/common/lc_mesh.cpp +++ b/common/lc_mesh.cpp @@ -11,6 +11,9 @@ lcMesh::lcMesh() { mSections = NULL; mNumSections = 0; + mNumVertices = 0; + mNumTexturedVertices = 0; + mIndexType = 0; } lcMesh::~lcMesh() diff --git a/common/project.cpp b/common/project.cpp index bfa5f666..4a851da1 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -68,6 +68,8 @@ Project::Project() m_pBackground = new lcTexture(); m_nAutosave = Sys_ProfileLoadInt ("Settings", "Autosave", 10); m_nMouse = Sys_ProfileLoadInt ("Default", "Mouse", 11); + m_nDownX = 0; + m_nDownY = 0; strcpy(m_strModelsPath, Sys_ProfileLoadString ("Default", "Projects", "")); if (messenger == NULL)