Fixed crash which happens if an end animation is playing
in its non-looped part when the world is deleted (bug 3067944). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6056 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -121,6 +121,7 @@ void KartModel::loadInfo(const XMLNode &node)
|
||||
*/
|
||||
KartModel::~KartModel()
|
||||
{
|
||||
m_animated_node->setAnimationEndCallback(NULL);
|
||||
for(unsigned int i=0; i<4; i++)
|
||||
{
|
||||
if(m_wheel_node[i])
|
||||
|
||||
Reference in New Issue
Block a user