aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-07-17 14:03:15 +0000
committerTravis Howell2003-07-17 14:03:15 +0000
commitaf75c039813f2f927edad62ed5d23192ab77a929 (patch)
tree8e07ccf376f1e148551d6d3eb3212f9e8cae409c
parent09984089fb2bbe463c0a64255deff212b39310e7 (diff)
downloadscummvm-rg350-af75c039813f2f927edad62ed5d23192ab77a929.tar.gz
scummvm-rg350-af75c039813f2f927edad62ed5d23192ab77a929.tar.bz2
scummvm-rg350-af75c039813f2f927edad62ed5d23192ab77a929.zip
Fix from Hibernatus
svn-id: r9060
-rw-r--r--scumm/resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 2be823488a..e1bfa4347f 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -1785,6 +1785,8 @@ const byte *findResourceSmall(uint32 tag, const byte *searchin) {
uint16 smallTag;
smallTag = newTag2Old(tag);
+ if (smallTag == 0)
+ return NULL;
assert(searchin);