diff options
author | Strangerke | 2018-03-19 23:29:47 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | 2aa505fcc8e94bb23169271c5bdad686d800a208 (patch) | |
tree | 2bca6ffa7e2e63747351d75e98dad50e00d4935f | |
parent | de7c3d345ed7fd0186a00b8605b333ecfde99330 (diff) | |
download | scummvm-rg350-2aa505fcc8e94bb23169271c5bdad686d800a208.tar.gz scummvm-rg350-2aa505fcc8e94bb23169271c5bdad686d800a208.tar.bz2 scummvm-rg350-2aa505fcc8e94bb23169271c5bdad686d800a208.zip |
LILLIPUT: Fix bug in OC_scrollViewPort
-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)); |