[Scummvm-git-logs] scummvm master -> 0c3dc18305f96b20c76801c9ae014b94e924fda1
dreammaster
dreammaster at scummvm.org
Tue Nov 1 12:49:36 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0c3dc18305 TITANIC: Fix loading of remote buttons
Commit: 0c3dc18305f96b20c76801c9ae014b94e924fda1
https://github.com/scummvm/scummvm/commit/0c3dc18305f96b20c76801c9ae014b94e924fda1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-11-01T07:49:29-04:00
Commit Message:
TITANIC: Fix loading of remote buttons
Changed paths:
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 7e98308..59207f6 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;
}
More information about the Scummvm-git-logs
mailing list