aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r--engines/kyra/resource.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index c3cecf1a22..dda6664896 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -254,7 +254,12 @@ void Resource::unloadPakFile(const Common::String &filename) {
}
bool Resource::isInPakList(const Common::String &filename) {
- return isAccessable(filename);
+ if (!isAccessable(filename))
+ return false;
+ ResFileMap::iterator iter = _map.find(filename);
+ if (iter == _map.end())
+ return false;
+ return iter->_value.parent.empty();
}
void Resource::unloadAllPakFiles() {