My recent sound changes broke "restart". This should un-break it again.

svn-id: r13810
This commit is contained in:
Torbjörn Andersson 2004-05-09 13:20:12 +00:00
parent f74a675850
commit ed9bac56b0

View File

@ -758,6 +758,12 @@ void ResourceManager::remove(int res) {
*/
void ResourceManager::removeAll(void) {
// We need to clear the FX queue, because otherwise the sound system
// will still believe that the sound resources are in memory, and that
// it's ok to close them.
_vm->clearFxQueue();
for (uint i = 0; i < _totalResFiles; i++)
remove(i);
}