MADS: Fix selecting inventory items when inventory is scrolled
This commit is contained in:
parent
8de9a3ff80
commit
4207d74762
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue