aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-01 15:54:22 -0400
committerPaul Gilbert2014-06-01 15:54:22 -0400
commit4207d74762e8ad609a01015684ea72a5988a5b2b (patch)
tree8fabc255170655a51920029dac56b34c1476a296 /engines/mads
parent8de9a3ff801df349fac2f4abab8d43206b564c03 (diff)
downloadscummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.tar.gz
scummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.tar.bz2
scummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.zip
MADS: Fix selecting inventory items when inventory is scrolled
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/user_interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 7392d53a16..8c1cba7bd9 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -688,7 +688,7 @@ void UserInterface::loadElements() {
// Set up inventory list
_categoryIndexes[CAT_INV_LIST - 1] = _vm->_game->_screenObjects.size() + 1;
for (int idx = 0; idx < 5; ++idx) {
- getBounds(CAT_INV_LIST, idx, bounds);
+ getBounds(CAT_INV_LIST, _inventoryTopIndex + idx, bounds);
moveRect(bounds);
_vm->_game->_screenObjects.add(bounds, LAYER_GUI, CAT_INV_LIST, idx);