diff options
| author | Paul Gilbert | 2016-10-30 15:22:44 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2016-10-30 15:22:44 -0400 | 
| commit | 0ebc6aecd4beb3503a3cdb8cfb0bdaaa31ded8a1 (patch) | |
| tree | a7e23b8bcff03100f5168f7439ab2ff9a7473d74 | |
| parent | 1ff861ed3f4cb591e7d19b79b40a49d662a32755 (diff) | |
| download | scummvm-rg350-0ebc6aecd4beb3503a3cdb8cfb0bdaaa31ded8a1.tar.gz scummvm-rg350-0ebc6aecd4beb3503a3cdb8cfb0bdaaa31ded8a1.tar.bz2 scummvm-rg350-0ebc6aecd4beb3503a3cdb8cfb0bdaaa31ded8a1.zip | |
TITANIC: Add extra field initializations
| -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; | 
