aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-19 15:01:35 -0400
committerPaul Gilbert2015-07-19 15:01:35 -0400
commitbc9da9c14decc93fe5a70189426bd6f8600db2d8 (patch)
tree1a4744ee32049efdd6a85f64042ccd669ecf0006
parentc06bf58217a331b7563ecda4484dfb016d3087f8 (diff)
downloadscummvm-rg350-bc9da9c14decc93fe5a70189426bd6f8600db2d8.tar.gz
scummvm-rg350-bc9da9c14decc93fe5a70189426bd6f8600db2d8.tar.bz2
scummvm-rg350-bc9da9c14decc93fe5a70189426bd6f8600db2d8.zip
SHERLOCK: RT: Fix loading of inventory verb list secondary actions
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index 241eaca182..a62efcdbea 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -275,7 +275,7 @@ void WidgetInventoryVerbs::load() {
if (obj._type != INVALID && obj._type != HIDDEN) {
for (int useNum = 0; useNum < 6; ++useNum) {
- if (obj._use[useNum]._verb.hasPrefix("*") &&
+ if (!obj._use[useNum]._verb.hasPrefix("*") &&
!obj._use[useNum]._target.compareToIgnoreCase(inv[_owner->_invSelect]._name)) {
// Make sure the Verb is not already in the list
bool found1 = false;