From f415fe49a74c3c38834b4a40f4720d11676c9be0 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 18 Jul 2015 23:12:43 -0400 Subject: SHERLOCK: RT: Fix warnings --- engines/sherlock/tattoo/widget_inventory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp index c6ff39fd55..241eaca182 100644 --- a/engines/sherlock/tattoo/widget_inventory.cpp +++ b/engines/sherlock/tattoo/widget_inventory.cpp @@ -384,7 +384,7 @@ void WidgetInventoryVerbs::handleEvents() { ui._scrollHighlight = SH_NONE; banishWindow(); - if (_outsideMenu && !innerBounds.contains(mousePos) || ui._keyState.keycode == Common::KEYCODE_ESCAPE) { + if ((_outsideMenu && !innerBounds.contains(mousePos)) || ui._keyState.keycode == Common::KEYCODE_ESCAPE) { _owner->_invVerbMode = 0; } else if (innerBounds.contains(mousePos)) { _outsideMenu = false; @@ -472,7 +472,7 @@ void WidgetInventoryVerbs::highlightControls() { // See if the highlighted verb has changed if (_invVerbSelect != _oldInvVerbSelect) { // Draw the list again, with the new highlighting - for (uint idx = 0; idx < _inventCommands.size(); ++idx) { + for (int idx = 0; idx < (int)_inventCommands.size(); ++idx) { byte color = (idx == _invVerbSelect) ? COMMAND_HIGHLIGHTED : INFO_TOP; _surface.writeString(_inventCommands[idx], Common::Point( (_bounds.width() - _surface.stringWidth(_inventCommands[idx])) / 2, -- cgit v1.2.3