Added missing initialisation.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-07-05 23:06:11 +00:00
parent 2bb985313d
commit 6d3e1ebb06

View File

@ -22,6 +22,18 @@
#include "modes/world.hpp"
// -----------------------------------------------------------------------------
/** Constructor: Initialises all data structures with zero.
*/
TriangleMesh::TriangleMesh() : m_mesh()
{
m_body = NULL;
m_motion_state = NULL;
m_collision_shape = NULL;
} // TriangleMesh
// -----------------------------------------------------------------------------
/** Destructor: delete all allocated data structures.
*/
TriangleMesh::~TriangleMesh()
{
if(m_body)