Fix SFX leaks
This commit is contained in:
parent
69e26d7561
commit
64c1e8d19c
@ -325,6 +325,11 @@ void Powerup::use()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_sound_use != NULL)
|
||||
{
|
||||
m_sound_use->deleteSFX();
|
||||
m_sound_use = NULL;
|
||||
}
|
||||
m_sound_use = SFXManager::get()->createSoundSource("inflate");//Extraordinary. Usually sounds are set in Powerup::set()
|
||||
//In this case this is a workaround, since the bubblegum item has two different sounds.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user