Fix possbile null buffer
This commit is contained in:
parent
ed268331f1
commit
3ee940b242
@ -943,6 +943,7 @@ void SFXManager::reallyResumeAllNow()
|
|||||||
{
|
{
|
||||||
// Some buffer not added to m_all_sfx_types need to be loaded here
|
// Some buffer not added to m_all_sfx_types need to be loaded here
|
||||||
// For example sound for entering challenge house in overworld
|
// For example sound for entering challenge house in overworld
|
||||||
|
if ((*i)->getBuffer())
|
||||||
(*i)->getBuffer()->load();
|
(*i)->getBuffer()->load();
|
||||||
(*i)->reallyResumeNow();
|
(*i)->reallyResumeNow();
|
||||||
} // for i in m_all_sfx
|
} // for i in m_all_sfx
|
||||||
|
Loading…
Reference in New Issue
Block a user