mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
Modification in concordance with commit 91bd6ae
This commit is contained in:
parent
91bd6ae022
commit
871b37906b
1 changed files with 4 additions and 1 deletions
|
@ -1572,7 +1572,10 @@ void SoundManager::clearLocalSounds()
|
||||||
std::string snd = (*i);
|
std::string snd = (*i);
|
||||||
debugLog("unloading sound [" + snd + "]");
|
debugLog("unloading sound [" + snd + "]");
|
||||||
FMOD::Sound *samp = (FMOD::Sound*)soundMap[snd];
|
FMOD::Sound *samp = (FMOD::Sound*)soundMap[snd];
|
||||||
samp->release();
|
if (samp)
|
||||||
|
{
|
||||||
|
samp->release();
|
||||||
|
}
|
||||||
soundMap[snd] = 0;
|
soundMap[snd] = 0;
|
||||||
}
|
}
|
||||||
localSounds.clear();
|
localSounds.clear();
|
||||||
|
|
Loading…
Reference in a new issue