diff options
author | Johannes Schickel | 2008-02-07 23:14:53 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-02-07 23:14:53 +0000 |
commit | 9b5839082da2ad541200474c1acb5e16a3df076b (patch) | |
tree | ecea8b894a946c4f5f59f3c9a36316f3bdefc4a6 /engines/kyra | |
parent | ae0b605ad4c2b69f1e47e0d98c5cf3a881267318 (diff) | |
download | scummvm-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.cpp | 6 |
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(); |