diff options
-rw-r--r-- | engines/supernova/state.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 88957a7c21..04853ca220 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -817,6 +817,10 @@ void GameManager::takeObject(Object &obj) { obj.setProperty(CARRIED); obj._click = obj._click2 = 255; _inventory.add(obj); + if (_inventory.getSize() > _inventoryScroll + 8) { + _inventoryScroll = _inventory.getSize() - 8; + _inventoryScroll += _inventoryScroll % 2; + } } void GameManager::drawCommandBox() { |