Fix possbile null buffer
This commit is contained in:
parent
ed268331f1
commit
3ee940b242
@ -943,7 +943,8 @@ 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
|
||||||
(*i)->getBuffer()->load();
|
if ((*i)->getBuffer())
|
||||||
|
(*i)->getBuffer()->load();
|
||||||
(*i)->reallyResumeNow();
|
(*i)->reallyResumeNow();
|
||||||
} // for i in m_all_sfx
|
} // for i in m_all_sfx
|
||||||
m_all_sfx.unlock();
|
m_all_sfx.unlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user