mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
DIRECTOR: LINGO: Fix define() code, we were adding too many instructions
This commit is contained in:
parent
f26bb57ef8
commit
89c1f2cfef
@ -240,7 +240,7 @@ Symbol *Lingo::define(Common::String &name, int start, int nargs, Common::String
|
||||
if (end == -1)
|
||||
end = _currentScript->size();
|
||||
|
||||
sym->u.defn = new ScriptData(&(*_currentScript)[start], end - start + 1);
|
||||
sym->u.defn = new ScriptData(&(*_currentScript)[start], end - start);
|
||||
sym->nargs = nargs;
|
||||
sym->maxArgs = nargs;
|
||||
|
||||
@ -256,6 +256,7 @@ Symbol *Lingo::define(Common::String &name, int start, int nargs, Common::String
|
||||
Common::String instr = g_lingo->decodeInstruction(sym->u.defn, pc, &pc);
|
||||
debugC(1, kDebugLingoExec, "[%5d] %s", pc, instr.c_str());
|
||||
}
|
||||
debugC(1, kDebugLingoExec, "<end define code>");
|
||||
}
|
||||
|
||||
return sym;
|
||||
|
Loading…
x
Reference in New Issue
Block a user