Hopefully fixed crash at exit

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5962 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-09-11 16:54:45 +00:00
parent 450517bb5c
commit c9c71dddd9

View File

@ -134,9 +134,15 @@ void MainLoop::run()
updateRace(dt);
} // if race is active
music_manager->update(dt);
input_manager->update(dt);
irr_driver->update(dt);
// We need to check again because update_race may have requested
// the main loop to abort; and it's not a good idea to continue
// since the GUI engine is no more to be called then.
if (!m_abort)
{
music_manager->update(dt);
input_manager->update(dt);
irr_driver->update(dt);
}
} // while !m_exit
} // run