aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/resourceman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/neverhood/resourceman.cpp')
-rw-r--r--engines/neverhood/resourceman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/neverhood/resourceman.cpp b/engines/neverhood/resourceman.cpp
index 28f0994cb1..0538f58e87 100644
--- a/engines/neverhood/resourceman.cpp
+++ b/engines/neverhood/resourceman.cpp
@@ -135,8 +135,8 @@ byte *ResourceMan::getResourceExtData(int resourceHandle) {
}
byte *ResourceMan::getResourceExtDataByHash(uint32 fileHash) {
- ResourceFileEntry *entry = findEntry(fileHash);
- return _archives[entry->archiveIndex]->getEntryExtData(entry->entryIndex);
+ ResourceFileEntry *entry = findEntrySimple(fileHash);
+ return entry ? _archives[entry->archiveIndex]->getEntryExtData(entry->entryIndex) : NULL;
}
byte *ResourceMan::loadResource(int resourceHandle, bool moveToFront) {