From 4207d74762e8ad609a01015684ea72a5988a5b2b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 1 Jun 2014 15:54:22 -0400 Subject: MADS: Fix selecting inventory items when inventory is scrolled --- engines/mads/user_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3