aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-05 22:46:35 -0500
committerPaul Gilbert2016-03-05 22:46:35 -0500
commitac930083ac701eb21bab1f04cada545ec60211dd (patch)
tree197adee768447ff9ca12c5f06ba858f95ef5d8a5 /engines/titanic
parent20725a0edaa8e92d49a59328e6a63bfb97c4a57c (diff)
downloadscummvm-rg350-ac930083ac701eb21bab1f04cada545ec60211dd.tar.gz
scummvm-rg350-ac930083ac701eb21bab1f04cada545ec60211dd.tar.bz2
scummvm-rg350-ac930083ac701eb21bab1f04cada545ec60211dd.zip
TITANIC: Fixes for CStarControl loading
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/star_control/star_control_sub11.cpp8
-rw-r--r--engines/titanic/star_control/star_control_sub11.h1
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/titanic/star_control/star_control_sub11.cpp b/engines/titanic/star_control/star_control_sub11.cpp
index a2bd7b2aa6..6c782933ae 100644
--- a/engines/titanic/star_control/star_control_sub11.cpp
+++ b/engines/titanic/star_control/star_control_sub11.cpp
@@ -27,8 +27,8 @@ namespace Titanic {
CStarControlSub11::CStarControlSub11() :
_sub12(nullptr, nullptr), _sub13(nullptr),
- _field4(0), _field8(0), _field20C(0), _field210(0),
- _field214(0), _field218(0), _field21C(0) {
+ _field4(0), _field8(0), _field118(0), _field20C(0),
+ _field210(0), _field214(0), _field218(0), _field21C(0) {
_sub12.proc3();
}
@@ -36,8 +36,8 @@ void CStarControlSub11::load(SimpleFile *file, int param) {
if (!param) {
_sub12.load(file, param);
- int val = file->readNumber();
- if (val)
+ _field118 = file->readNumber();
+ if (_field118)
_sub13.load(file, 0);
_field218 = file->readNumber();
diff --git a/engines/titanic/star_control/star_control_sub11.h b/engines/titanic/star_control/star_control_sub11.h
index bff246f3fb..6e47f85807 100644
--- a/engines/titanic/star_control/star_control_sub11.h
+++ b/engines/titanic/star_control/star_control_sub11.h
@@ -36,6 +36,7 @@ private:
int _field4;
int _field8;
CStarControlSub12 _sub12;
+ int _field118;
CStarControlSub13 _sub13;
CStarControlSub15 _sub15;
int _field20C;