Fix possbile null buffer

This commit is contained in:
Benau 2021-05-20 15:13:29 +08:00
parent ed268331f1
commit 3ee940b242

View File

@ -943,7 +943,8 @@ void SFXManager::reallyResumeAllNow()
{
// Some buffer not added to m_all_sfx_types need to be loaded here
// For example sound for entering challenge house in overworld
(*i)->getBuffer()->load();
if ((*i)->getBuffer())
(*i)->getBuffer()->load();
(*i)->reallyResumeNow();
} // for i in m_all_sfx
m_all_sfx.unlock();