diff options
| -rw-r--r-- | engines/titanic/true_talk/script_support.cpp | 2 | ||||
| -rw-r--r-- | engines/titanic/true_talk/script_support.h | 5 | 
2 files changed, 5 insertions, 2 deletions
| diff --git a/engines/titanic/true_talk/script_support.cpp b/engines/titanic/true_talk/script_support.cpp index 14560e2d9f..440cb1ab98 100644 --- a/engines/titanic/true_talk/script_support.cpp +++ b/engines/titanic/true_talk/script_support.cpp @@ -38,7 +38,7 @@ int TTnpcScriptResponse::size() const {  TTscriptRange::TTscriptRange(uint id, const Common::Array<uint> &values,  		bool isRandom, bool isSequential) : -		_id(id), _nextP(nullptr) { +		_id(id), _nextP(nullptr), _priorIndex(0) {  	_mode = SF_NONE;  	if (isRandom)  		_mode = SF_RANDOM; diff --git a/engines/titanic/true_talk/script_support.h b/engines/titanic/true_talk/script_support.h index bdaec6e7c9..ffd4f4885f 100644 --- a/engines/titanic/true_talk/script_support.h +++ b/engines/titanic/true_talk/script_support.h @@ -40,6 +40,10 @@ struct TTnpcScriptResponse {  	uint _tag;  	uint _values[4]; +	TTnpcScriptResponse() : _tag(0) { +		_values[0] = _values[1] = _values[2] = _values[3] = 0; +	} +  	/**  	 * Returns the size of the values list plus 1  	 */ @@ -59,7 +63,6 @@ struct TTscriptRange {  		bool isSequential);  }; -  struct TTsentenceEntry {  	int _field0;  	int _field4; | 
