Fixed memory corrpution (causing a crash when the game ends).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8025 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
72c3bf2cc8
commit
41e0db991a
@ -64,7 +64,7 @@ PowerupManager::~PowerupManager()
|
||||
// Note that this test is necessary, since some meshes
|
||||
// are also used in attachment_manager!!!
|
||||
if(mesh->getReferenceCount()==1)
|
||||
m_all_meshes[(PowerupType)i]->drop();
|
||||
irr_driver->removeMesh(mesh);
|
||||
}
|
||||
}
|
||||
} // ~PowerupManager
|
||||
|
Loading…
x
Reference in New Issue
Block a user