diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index b36a35c5c..807cefb2b 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -111,18 +111,20 @@ void Track::cleanup() for(unsigned int i=0; iremoveNode(m_all_nodes[i]); - m_all_nodes.clear(); } + m_all_nodes.clear(); + for(unsigned int i=0; iremoveMesh(m_all_meshes[i]); - m_all_meshes.clear(); } + m_all_meshes.clear(); delete m_non_collision_mesh; @@ -512,8 +514,7 @@ void Track::update(float dt) { for(unsigned int i=0; iupdate(dt); + m_animated_textures[i]->update(dt); } for(unsigned int i=0; i