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:
parent
450517bb5c
commit
c9c71dddd9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user