diff options
author | Torbjörn Andersson | 2004-05-09 13:20:12 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-05-09 13:20:12 +0000 |
commit | ed9bac56b00e5a9f81588c5436a473c95a39cf6d (patch) | |
tree | c18148855eec4c06918562670900ffae3a27d4b2 /sword2 | |
parent | f74a675850be9aa7066e491bffac88c9595477d2 (diff) | |
download | scummvm-rg350-ed9bac56b00e5a9f81588c5436a473c95a39cf6d.tar.gz scummvm-rg350-ed9bac56b00e5a9f81588c5436a473c95a39cf6d.tar.bz2 scummvm-rg350-ed9bac56b00e5a9f81588c5436a473c95a39cf6d.zip |
My recent sound changes broke "restart". This should un-break it again.
svn-id: r13810
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/resman.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp index c9c424b482..dfdf4cde98 100644 --- a/sword2/resman.cpp +++ b/sword2/resman.cpp @@ -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); } |