aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gob/resources.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/resources.cpp b/engines/gob/resources.cpp
index 2f3b1b23e7..ddc717658e 100644
--- a/engines/gob/resources.cpp
+++ b/engines/gob/resources.cpp
@@ -555,6 +555,8 @@ TextItem *Resources::getTextItem(uint16 id) const {
if (id >= _totTextTable->itemsCount)
return 0;
+ assert(_totTextTable->items);
+
TOTTextItem &totItem = _totTextTable->items[id];
if ((totItem.offset == 0xFFFF) || (totItem.size == 0))
@@ -614,6 +616,8 @@ Resource *Resources::getTOTResource(uint16 id) const {
return 0;
}
+ assert(_totResourceTable->items);
+
TOTResourceItem &totItem = _totResourceTable->items[id];
byte *data = 0;
@@ -639,6 +643,8 @@ Resource *Resources::getEXTResource(uint16 id) const {
return 0;
}
+ assert(_totResourceTable->items);
+
EXTResourceItem &extItem = _extResourceTable->items[id];
uint32 size = extItem.size;