diff options
author | Paul Gilbert | 2016-09-03 11:19:23 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-03 11:19:23 -0400 |
commit | be4ed6ea2684a76ab843de306a66fc2cd60e7241 (patch) | |
tree | 41b7d5a21ebb8473b780993d629c2cb743a3bcd7 /engines/titanic/true_talk | |
parent | 3d0f922f7bdb1388f797aa55a8a4f67ea7f7960b (diff) | |
download | scummvm-rg350-be4ed6ea2684a76ab843de306a66fc2cd60e7241.tar.gz scummvm-rg350-be4ed6ea2684a76ab843de306a66fc2cd60e7241.tar.bz2 scummvm-rg350-be4ed6ea2684a76ab843de306a66fc2cd60e7241.zip |
TITANIC: Cleanup of title engine class
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/title_engine.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/true_talk/title_engine.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/engines/titanic/true_talk/title_engine.cpp b/engines/titanic/true_talk/title_engine.cpp index 363cc3454c..079067389d 100644 --- a/engines/titanic/true_talk/title_engine.cpp +++ b/engines/titanic/true_talk/title_engine.cpp @@ -40,8 +40,7 @@ void CTitleEngine::setup(int val1, int val2) { /*------------------------------------------------------------------------*/ -STtitleEngine::STtitleEngine(): CTitleEngine(), - _responseP(nullptr), _field58(0) { +STtitleEngine::STtitleEngine(): CTitleEngine(), _responseP(nullptr) { } STtitleEngine::~STtitleEngine() { @@ -49,7 +48,6 @@ STtitleEngine::~STtitleEngine() { } void STtitleEngine::reset() { - _field58 = 0; _indexes.clear(); } @@ -58,6 +56,7 @@ void STtitleEngine::setup(int val1, int val2) { } int STtitleEngine::setResponse(TTscriptBase *script, TTresponse *response) { + _responseP = response; _indexes.clear(); for (TTresponse *respP = response; respP; respP = respP->getNext()) { _indexes.push_back(respP->getDialogueId()); diff --git a/engines/titanic/true_talk/title_engine.h b/engines/titanic/true_talk/title_engine.h index a980e52215..ca7a5dcd14 100644 --- a/engines/titanic/true_talk/title_engine.h +++ b/engines/titanic/true_talk/title_engine.h @@ -67,8 +67,7 @@ public: class STtitleEngine : public CTitleEngine { private: Common::SeekableReadStream *_stream; - TTresponse *_responseP; - int _field58; + const TTresponse *_responseP; public: Common::Array<uint> _indexes; Common::Array<byte> _data; |