SCI: Merge setLockers(1) call into Script::init

svn-id: r49337
This commit is contained in:
Max Horn 2010-05-30 23:00:32 +00:00
parent a0ee93ece5
commit 4e25867a67
2 changed files with 2 additions and 4 deletions

View File

@ -273,10 +273,6 @@ int script_instantiate_common(ResourceManager *resMan, SegManager *segMan, int s
scr->init(script_nr, resMan);
scr->load(resMan);
// Set heap position (beyond the size word)
scr->setLockers(1);
*was_new = 0;
return seg_id;

View File

@ -135,6 +135,8 @@ void Script::init(int script_nr, ResourceManager *resMan) {
_bufSize = script->size;
_heapSize = 0;
_lockers = 1;
if (getSciVersion() == SCI_VERSION_0_EARLY) {
_bufSize += READ_LE_UINT16(script->data) * 2;
} else if (getSciVersion() >= SCI_VERSION_1_1) {