mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-15 14:28:28 +00:00
SCI: Merge setLockers(1) call into Script::init
svn-id: r49337
This commit is contained in:
parent
a0ee93ece5
commit
4e25867a67
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user