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,6 +943,7 @@ 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
if ((*i)->getBuffer())
(*i)->getBuffer()->load();
(*i)->reallyResumeNow();
} // for i in m_all_sfx