From bb28315ebb48c4aaa362be57c748ccac17e5c696 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 30 Nov 2016 20:14:17 -0500 Subject: TITANIC: Fix getting remote highlight indexes --- engines/titanic/pet_control/pet_remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/titanic/pet_control/pet_remote.cpp') diff --git a/engines/titanic/pet_control/pet_remote.cpp b/engines/titanic/pet_control/pet_remote.cpp index f80403c573..9123959b62 100644 --- a/engines/titanic/pet_control/pet_remote.cpp +++ b/engines/titanic/pet_control/pet_remote.cpp @@ -303,7 +303,7 @@ int CPetRemote::getHighlightIndex(RemoteGlyph val) { // Loop through the data for the room for (uint idx = 0; idx < remoteData.size(); ++idx) { - if ((RemoteGlyph)remoteData[idx + 1] == val) + if ((RemoteGlyph)remoteData[idx] == val) return idx; } -- cgit v1.2.3