From bfd71cff6e73c0be6b2d66f7f71921094f42ca09 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Tue, 26 Jul 2011 08:38:19 +0000 Subject: NEVERHOOD: New modules Module1200, Module1400, Module1700 and Module1800 - Implement CollisionMan::removeSprite --- engines/neverhood/resourceman.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/neverhood/resourceman.cpp') 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) { -- cgit v1.2.3