diff options
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/screen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp index c27b781dda..edccb68953 100644 --- a/engines/made/screen.cpp +++ b/engines/made/screen.cpp @@ -368,6 +368,9 @@ uint16 Screen::drawFlex(uint16 flexIndex, int16 x, int16 y, int16 flipX, int16 f return 0; PictureResource *flex = _vm->_res->getPicture(flexIndex); + if (!flex) + error("Failed to find picture %d", flexIndex); + Graphics::Surface *sourceSurface = flex->getPicture(); drawSurface(sourceSurface, x, y, flipX, flipY, mask, clipInfo); |