diff options
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp index d8a85d472d..83369f5b94 100644 --- a/engines/mads/nebular/dialogs_nebular.cpp +++ b/engines/mads/nebular/dialogs_nebular.cpp @@ -421,6 +421,8 @@ void PictureDialog::save() { // Get the inventory frame, and adjust the dialog position to allow for it MSprite *frame = asset->getFrame(0); _position.y = frame->h + 12; + if ((_position.y + _height) > _vm->_screen.getHeight()) + _position.y -= (_position.y + _height) - _vm->_screen.getHeight(); // Draw the inventory picture frame->copyTo(&_vm->_screen, Common::Point(160 - frame->w / 2, 6), |