Made the m_old_mesh_buffer a member of the class instead of a global

variable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-04-27 23:08:35 +00:00
parent f70d077ba0
commit 92b0d334de
2 changed files with 8 additions and 2 deletions

View File

@@ -115,8 +115,6 @@ void Track::reset()
* Called at the end of a race.
*/
std::vector<std::string> m_old_mesh_buffers;
void Track::cleanup()
{
if(m_quad_graph)

View File

@@ -83,6 +83,14 @@ private:
/** The list of all meshes that are loaded from disk, which means
* that those meshes are being cached by irrlicht, and need to be freed. */
std::vector<scene::IMesh*> m_all_cached_meshes;
#ifdef DEBUG
/** Used to store all buffers in irrlicht's memory cache before a track
* is loaded. After cleanup of a track we can test which meshes are
* still in the cache, and print a report of leaked meshes (of course in
* debug mode only). */
std::vector<std::string> m_old_mesh_buffers;
#endif
PtrVector<ParticleEmitter> m_all_emitters;
scene::ILightSceneNode *m_sun;
/** Used to collect the triangles for the bullet mesh. */