diff options
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(); |