aboutsummaryrefslogtreecommitdiff
path: root/engines/access/bubble_box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/bubble_box.cpp')
-rw-r--r--engines/access/bubble_box.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/access/bubble_box.cpp b/engines/access/bubble_box.cpp
index d865d5c9b3..37b757f8d9 100644
--- a/engines/access/bubble_box.cpp
+++ b/engines/access/bubble_box.cpp
@@ -52,6 +52,8 @@ void BubbleBox::clearBubbles() {
_vm->_screen->_screenYOff = 0;
Common::Rect r = _bubbles[i];
r.left -= 2;
+ r.right = MIN(r.right, (int16)_vm->_screen->w);
+
_vm->_screen->copyBlock(&_vm->_buffer2, r);
}