Fix SFX leaks

This commit is contained in:
auria.mg 2017-08-30 20:39:20 -04:00
parent 69e26d7561
commit 64c1e8d19c

View File

@ -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.