diff options
Diffstat (limited to 'engines/lilliput/script.cpp')
-rw-r--r-- | engines/lilliput/script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index 46f8938134..fb0886926a 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -2822,8 +2822,8 @@ void LilliputScript::OC_scrollViewPort() { int x = _viewportPos.x + scrollValX[direction]; int y = _viewportPos.y + scrollValY[direction]; - CLIP(x, 0, 56); - CLIP(y, 0, 56); + x = CLIP(x, 0, 56); + y = CLIP(y, 0, 56); _vm->_refreshScreenFlag = true; _vm->viewportScrollTo(Common::Point(x, y)); |