aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/adl/adl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp
index 33124a2ea4..55f98dfa97 100644
--- a/engines/adl/adl.cpp
+++ b/engines/adl/adl.cpp
@@ -454,8 +454,10 @@ void AdlEngine::clearScreen() const {
void AdlEngine::drawPic(byte pic, Common::Point pos) const {
if (_roomData.pictures.contains(pic))
_graphics->drawPic(*_roomData.pictures[pic]->createReadStream(), pos);
- else
+ else if (_pictures.contains(pic))
_graphics->drawPic(*_pictures[pic]->createReadStream(), pos);
+ else
+ error("Picture %d not found", pic);
}
void AdlEngine::bell(uint count) const {