aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-01 07:49:29 -0400
committerPaul Gilbert2016-11-01 07:49:29 -0400
commit0c3dc18305f96b20c76801c9ae014b94e924fda1 (patch)
tree6b063c039393de84fbbfde0b6af66822d72957ee
parentbce75da07a8573160a53f9e9dd3855106982d6f3 (diff)
downloadscummvm-rg350-0c3dc18305f96b20c76801c9ae014b94e924fda1.tar.gz
scummvm-rg350-0c3dc18305f96b20c76801c9ae014b94e924fda1.tar.bz2
scummvm-rg350-0c3dc18305f96b20c76801c9ae014b94e924fda1.zip
TITANIC: Fix loading of remote buttons
-rw-r--r--engines/titanic/pet_control/pet_remote.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_remote.cpp b/engines/titanic/pet_control/pet_remote.cpp
index 7e98308114..59207f6e9c 100644
--- a/engines/titanic/pet_control/pet_remote.cpp
+++ b/engines/titanic/pet_control/pet_remote.cpp
@@ -314,8 +314,8 @@ bool CPetRemote::getRemoteData(int roomIndex, Common::Array<uint> &indexes) {
const byte *p = &REMOTE_DATA[0];
for (int idx = 0; idx < TOTAL_ROOMS; ++idx) {
if (*p == roomIndex) {
- for (int ctr = 0; ctr < *p; ++ctr)
- indexes.push_back(p[ctr + 1]);
+ for (int ctr = 0; ctr < p[1]; ++ctr)
+ indexes.push_back(p[ctr + 2]);
return true;
}