aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-15 11:15:58 -0500
committerPaul Gilbert2013-12-15 11:15:58 -0500
commit8eae02966998007397a056c99b7e236c30d88bf1 (patch)
treed663d8345917f24d48482b93fad77b59f47ad97a
parente44fa657e4cfc3c27b4eb607ba1d1cb11aade053 (diff)
downloadscummvm-rg350-8eae02966998007397a056c99b7e236c30d88bf1.tar.gz
scummvm-rg350-8eae02966998007397a056c99b7e236c30d88bf1.tar.bz2
scummvm-rg350-8eae02966998007397a056c99b7e236c30d88bf1.zip
VOYEUR: Fix for resource pointers resolveAll not clearing it's resolve it
-rw-r--r--engines/voyeur/files.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp
index fb9bcc3389..ec95664165 100644
--- a/engines/voyeur/files.cpp
+++ b/engines/voyeur/files.cpp
@@ -382,6 +382,8 @@ void BoltFile::resolveFunction(uint32 id, GraphicMethodPtr *fn) {
void BoltFile::resolveAll() {
for (uint idx = 0; idx < _state._resolves.size(); ++idx)
*_state._resolves[idx]._p = memberAddrOffset(_state._resolves[idx]._id);
+
+ _state._resolves.clear();
}
byte *BoltFile::getBoltMember(uint32 id) {