Fix crash when going story mode while music is disabled.

This commit is contained in:
hiker 2015-02-12 13:19:58 +11:00
parent c675b6f38c
commit f589b2063e

View File

@ -683,6 +683,7 @@ void SFXManager::reallyUpdateNow(SFXCommand *current)
{
assert(current->m_command==SFX_UPDATE);
float dt = current->m_parameter.getX();
if (music_manager->getCurrentMusic())
music_manager->getCurrentMusic()->update(dt);
m_all_sfx.lock();
for (std::vector<SFXBase*>::iterator i = m_all_sfx.getData().begin();