aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/true_talk/title_engine.cpp5
-rw-r--r--engines/titanic/true_talk/title_engine.h3
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;