aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-02-07 23:14:53 +0000
committerJohannes Schickel2008-02-07 23:14:53 +0000
commit9b5839082da2ad541200474c1acb5e16a3df076b (patch)
treeecea8b894a946c4f5f59f3c9a36316f3bdefc4a6 /engines/kyra
parentae0b605ad4c2b69f1e47e0d98c5cf3a881267318 (diff)
downloadscummvm-rg350-9b5839082da2ad541200474c1acb5e16a3df076b.tar.gz
scummvm-rg350-9b5839082da2ad541200474c1acb5e16a3df076b.tar.bz2
scummvm-rg350-9b5839082da2ad541200474c1acb5e16a3df076b.zip
Fixed regression introduced while reworking resource loading code.
svn-id: r30821
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/resource.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index 9077a1291a..52ab363608 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -96,6 +96,12 @@ bool Resource::reset() {
};
Common::for_each(list, list + ARRAYSIZE(list), Common::bind1st(Common::mem_fun(&Resource::loadPakFile), this));
+
+ for (int i = 0; i < ARRAYSIZE(list); ++i) {
+ ResFileMap::iterator iterator = _map.find(list[i]);
+ if (iterator != _map.end())
+ iterator->_value.prot = true;
+ }
} else {
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
Common::String filename = file->getName();