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)