aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-27 22:24:56 -0500
committerPaul Gilbert2017-01-27 22:24:56 -0500
commit7cc2e00eca7f7d64659918f483021cd57e7b0976 (patch)
tree1c459fccd2ce7c733350e001443c819a4caccfbd /engines/titanic
parente9e8d68cc9e5087293e517fcdc7c7bc5ea0412f0 (diff)
downloadscummvm-rg350-7cc2e00eca7f7d64659918f483021cd57e7b0976.tar.gz
scummvm-rg350-7cc2e00eca7f7d64659918f483021cd57e7b0976.tar.bz2
scummvm-rg350-7cc2e00eca7f7d64659918f483021cd57e7b0976.zip
TITANIC: Properly initialize TTconcept fields on creation
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/true_talk/tt_concept.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/titanic/true_talk/tt_concept.cpp b/engines/titanic/true_talk/tt_concept.cpp
index b4313310db..b7ad0b3690 100644
--- a/engines/titanic/true_talk/tt_concept.cpp
+++ b/engines/titanic/true_talk/tt_concept.cpp
@@ -53,7 +53,8 @@ TTconcept::TTconcept(TTscriptBase *script, ScriptType scriptType) :
TTconcept::TTconcept(TTword *word, ScriptType scriptType) :
_string1(" "), _string2(" "), _nextP(nullptr), _wordP(nullptr), _scriptP(nullptr),
- _status(SS_VALID), _scriptType(ST_UNKNOWN_SCRIPT), _field14(0), _field20(0), _field34(0) {
+ _status(SS_VALID), _scriptType(ST_UNKNOWN_SCRIPT), _field14(0), _field1C(0), _field20(0),
+ _field30(0), _field34(0), _flag(false) {
if (!word || !setStatus() || word->getStatus()) {
_status = SS_5;
} else {
@@ -68,8 +69,9 @@ TTconcept::TTconcept(TTword *word, ScriptType scriptType) :
TTconcept::TTconcept(TTconcept &src) :
_string1(src._string1), _string2(src._string2), _nextP(nullptr),
- _wordP(nullptr), _scriptP(nullptr), _status(SS_VALID),
- _scriptType(ST_UNKNOWN_SCRIPT), _field14(0), _field20(0), _field34(0) {
+ _wordP(nullptr), _word2P(nullptr), _scriptP(nullptr), _status(SS_VALID),
+ _scriptType(ST_UNKNOWN_SCRIPT), _field14(0), _field1C(0), _field20(0),
+ _field30(0), _field34(0), _flag(false) {
if (src.getStatus()) {
_status = SS_5;
} else {