diff options
Diffstat (limited to 'engines/neverhood/staticdata.cpp')
-rw-r--r-- | engines/neverhood/staticdata.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/neverhood/staticdata.cpp b/engines/neverhood/staticdata.cpp index 4cd1d30251..b9ac232707 100644 --- a/engines/neverhood/staticdata.cpp +++ b/engines/neverhood/staticdata.cpp @@ -107,14 +107,20 @@ void StaticData::load(const char *filename) { } HitRectList *StaticData::getHitRectList(uint32 id) { + if (!_hitRectLists[id]) + error("StaticData::getHitRectList() HitRectList with id %08X not found", id); return _hitRectLists[id]; } RectList *StaticData::getRectList(uint32 id) { + if (!_rectLists[id]) + error("StaticData::getRectList() RectList with id %08X not found", id); return _rectLists[id]; } MessageList *StaticData::getMessageList(uint32 id) { + if (!_messageLists[id]) + error("StaticData::getMessageList() MessageList with id %08X not found", id); return _messageLists[id]; } |