aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
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;
}