diff options
Diffstat (limited to 'engines')
-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(); |