aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-30 20:01:53 -0400
committerPaul Gilbert2015-06-30 20:01:53 -0400
commit8e4fca0e75639caa5d425682d8e8d09a5dbf1c27 (patch)
tree4319eacb182a3244a2c5174cdae2ee8c36247535
parent44676d02f4fd653e9302ef2a28d3cfd895984d22 (diff)
downloadscummvm-rg350-8e4fca0e75639caa5d425682d8e8d09a5dbf1c27.tar.gz
scummvm-rg350-8e4fca0e75639caa5d425682d8e8d09a5dbf1c27.tar.bz2
scummvm-rg350-8e4fca0e75639caa5d425682d8e8d09a5dbf1c27.zip
SHERLOCK: RT: Fix inventory tooltip when hovering on empty slots
-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 b4a6daabc2..1b4fa69a76 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -118,7 +118,7 @@ void WidgetInventoryTooltip::handleEvents() {
TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
Common::Point mousePos = events.mousePos();
Common::String str;
- int select = -1, oldSelect = -1;
+ int select = -1, oldSelect = 999;
Common::String strWith = fixedText.getText(kFixedText_With);
Common::String strUse = fixedText.getText(kFixedText_Use);