diff options
-rw-r--r-- | scumm/resource.cpp | 2 |
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); |