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:
hikerstk
2010-09-19 10:55:34 +00:00
parent d1c3f11021
commit 83723a83ea

View File

@@ -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])