SCI: Fix segfault in dual-language KQ5.
svn-id: r46864
This commit is contained in:
parent
137744c40c
commit
205f7437ea
3 changed files with 24 additions and 4 deletions
|
@ -568,6 +568,13 @@ Object *Script::scriptObjInit(reg_t obj_pos) {
|
|||
return obj;
|
||||
}
|
||||
|
||||
void Script::scriptObjRemove(reg_t obj_pos) {
|
||||
if (getSciVersion() < SCI_VERSION_1_1)
|
||||
obj_pos.offset += 8;
|
||||
|
||||
_objects.erase(obj_pos.toUint16());
|
||||
}
|
||||
|
||||
LocalVariables *SegManager::allocLocalsSegment(Script *scr, int count) {
|
||||
if (!count) { // No locals
|
||||
scr->_localsSegment = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue