TITANIC: Add extra field initializations

This commit is contained in:
Paul Gilbert 2016-10-30 15:22:44 -04:00
parent 1ff861ed3f
commit 0ebc6aecd4
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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;