mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 03:40:25 +00:00
TITANIC: Add extra field initializations
This commit is contained in:
parent
1ff861ed3f
commit
0ebc6aecd4
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user