diff options
author | Paul Gilbert | 2014-06-01 15:54:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-06-01 15:54:22 -0400 |
commit | 4207d74762e8ad609a01015684ea72a5988a5b2b (patch) | |
tree | 8fabc255170655a51920029dac56b34c1476a296 | |
parent | 8de9a3ff801df349fac2f4abab8d43206b564c03 (diff) | |
download | scummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.tar.gz scummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.tar.bz2 scummvm-rg350-4207d74762e8ad609a01015684ea72a5988a5b2b.zip |
MADS: Fix selecting inventory items when inventory is scrolled
-rw-r--r-- | engines/mads/user_interface.cpp | 2 |
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); |