Remove ZeroedMemoryAllocator from ScriptText
Have ScriptText initialise all of its members on construction and not derive from ZeroedMemoryAllocator. (cherry picked from commit 3240126202d3437396004f2d5b0371783effb1ea) Reorder ScriptText constructor initialisers.
This commit is contained in:

committed by
Jonathan G Rennison

parent
80fd6a2783
commit
e6122f5ce4
@@ -30,7 +30,7 @@ RawText::~RawText()
|
||||
|
||||
|
||||
ScriptText::ScriptText(HSQUIRRELVM vm) :
|
||||
ZeroedMemoryAllocator()
|
||||
string(STR_NULL), params(), parami(), paramt(), paramc(0)
|
||||
{
|
||||
int nparam = sq_gettop(vm) - 1;
|
||||
if (nparam < 1) {
|
||||
|
Reference in New Issue
Block a user