diff options
author | Joseph-Eugene Winzer | 2017-09-01 12:32:23 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:31 +0000 |
commit | 9f3f9f47ad313a3e9b2d71560f8f98df93b54b07 (patch) | |
tree | 93229e49bdf20d093e68d817bf82051f25ae7580 /engines | |
parent | 5bdfb6f13a6f507ec7ff94305a6ac1b8f256c292 (diff) | |
download | scummvm-rg350-9f3f9f47ad313a3e9b2d71560f8f98df93b54b07.tar.gz scummvm-rg350-9f3f9f47ad313a3e9b2d71560f8f98df93b54b07.tar.bz2 scummvm-rg350-9f3f9f47ad313a3e9b2d71560f8f98df93b54b07.zip |
SUPERNOVA: Limits inventory scroll
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 8985f475b9..88957a7c21 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -500,7 +500,8 @@ void GameManager::processInput() { if (_inventoryScroll >= 2) _inventoryScroll -= 2; } else if (_mouseField == 769) { - _inventoryScroll += 2; + if (_inventoryScroll < _inventory.getSize() - ARRAYSIZE(_guiInventory)) + _inventoryScroll += 2; } } else if (_mouseClickType == Common::EVENT_RBUTTONUP) { _vm->removeMessage(); |