aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-30 20:14:17 -0500
committerPaul Gilbert2016-11-30 20:14:17 -0500
commitbb28315ebb48c4aaa362be57c748ccac17e5c696 (patch)
treeaac84fde674949c286f16c210fa73e95d3642fda /engines/titanic/pet_control
parent32e7086b886c63752157843c0975772b81d2eea1 (diff)
downloadscummvm-rg350-bb28315ebb48c4aaa362be57c748ccac17e5c696.tar.gz
scummvm-rg350-bb28315ebb48c4aaa362be57c748ccac17e5c696.tar.bz2
scummvm-rg350-bb28315ebb48c4aaa362be57c748ccac17e5c696.zip
TITANIC: Fix getting remote highlight indexes
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r--engines/titanic/pet_control/pet_remote.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}