From ed9bac56b00e5a9f81588c5436a473c95a39cf6d Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 9 May 2004 13:20:12 +0000 Subject: My recent sound changes broke "restart". This should un-break it again. svn-id: r13810 --- sword2/resman.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sword2') 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); } -- cgit v1.2.3