mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26845) -Fix [Squirrel]: more uninitialized variables in constructors
This commit is contained in:
parent
6defde275c
commit
dba98e85cb
|
@ -80,6 +80,7 @@ private:
|
||||||
{
|
{
|
||||||
_stacksize=0;
|
_stacksize=0;
|
||||||
_bgenerator=false;
|
_bgenerator=false;
|
||||||
|
_varparams = false;
|
||||||
_ninstructions = ninstructions;
|
_ninstructions = ninstructions;
|
||||||
_literals = (SQObjectPtr*)&_instructions[ninstructions];
|
_literals = (SQObjectPtr*)&_instructions[ninstructions];
|
||||||
_nliterals = nliterals;
|
_nliterals = nliterals;
|
||||||
|
|
|
@ -85,6 +85,12 @@ SQLexer::SQLexer(SQSharedState *ss, SQLEXREADFUNC rg, SQUserPointer up,CompilerE
|
||||||
_lasttokenline = _currentline = 1;
|
_lasttokenline = _currentline = 1;
|
||||||
_currentcolumn = 0;
|
_currentcolumn = 0;
|
||||||
_prevtoken = -1;
|
_prevtoken = -1;
|
||||||
|
_curtoken = -1;
|
||||||
|
|
||||||
|
_svalue = NULL;
|
||||||
|
_nvalue = 0;
|
||||||
|
_fvalue = 0;
|
||||||
|
|
||||||
Next();
|
Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -539,6 +539,7 @@ SQString::SQString(const SQChar *news, SQInteger len)
|
||||||
_len = len;
|
_len = len;
|
||||||
_hash = ::_hashstr(news,(size_t)len);
|
_hash = ::_hashstr(news,(size_t)len);
|
||||||
_next = NULL;
|
_next = NULL;
|
||||||
|
_sharedstate = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SQStringTable::Resize(SQInteger size)
|
void SQStringTable::Resize(SQInteger size)
|
||||||
|
|
Loading…
Reference in New Issue