aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/action.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-05-17 14:35:48 -0400
committerPaul Gilbert2014-05-17 14:35:48 -0400
commitbc639c25c8f8e8f6a86235f59352851313753830 (patch)
tree3afcaff2ff050663882d1f3dabaa4957c76bc405 /engines/mads/action.cpp
parent3244db7ff45bcee9190abe9e209a66eb2464b653 (diff)
downloadscummvm-rg350-bc639c25c8f8e8f6a86235f59352851313753830.tar.gz
scummvm-rg350-bc639c25c8f8e8f6a86235f59352851313753830.tar.bz2
scummvm-rg350-bc639c25c8f8e8f6a86235f59352851313753830.zip
MADS: Fix for using inventory actions
Diffstat (limited to 'engines/mads/action.cpp')
-rw-r--r--engines/mads/action.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/action.cpp b/engines/mads/action.cpp
index e9593955c5..5d63c3a268 100644
--- a/engines/mads/action.cpp
+++ b/engines/mads/action.cpp
@@ -472,8 +472,8 @@ void MADSAction::checkActionAtMousePos() {
_mainObjectSource = CAT_NONE;
} else {
InventoryObject &invObject = _vm->_game->_objects.getItem(userInterface._selectedInvIndex);
- _verbType = invObject._vocabList[_selectedRow + 1]._verbType;
- _prepType = invObject._vocabList[_selectedRow + 1]._prepType;
+ _verbType = invObject._vocabList[_selectedRow]._verbType;
+ _prepType = invObject._vocabList[_selectedRow]._prepType;
_hotspotId = userInterface._selectedInvIndex;
_mainObjectSource = CAT_INV_LIST;