diff options
author | Paul Gilbert | 2016-11-30 20:14:17 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-30 20:14:17 -0500 |
commit | bb28315ebb48c4aaa362be57c748ccac17e5c696 (patch) | |
tree | aac84fde674949c286f16c210fa73e95d3642fda /engines/titanic/pet_control | |
parent | 32e7086b886c63752157843c0975772b81d2eea1 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |