Skip to content
Permalink
Browse files

DIRECTOR: LINGO: Fix debug output

  • Loading branch information
sev- committed Dec 2, 2019
1 parent 5740a2a commit 6060ec7fcc1982a1f46526197d48c358961466a9
Showing with 3 additions and 3 deletions.
  1. +3 −3 engines/director/lingo/lingo-codegen.cpp
@@ -251,13 +251,13 @@ Symbol *Lingo::define(Common::String &name, int start, int nargs, Common::String
_currentScript->remove_at(i);
}

if (debugChannelSet(1, kDebugLingoExec)) {
if (debugChannelSet(1, kDebugLingoCompile)) {
uint pc = 0;
while (pc < sym->u.defn->size()) {
Common::String instr = g_lingo->decodeInstruction(sym->u.defn, pc, &pc);
debugC(1, kDebugLingoExec, "[%5d] %s", pc, instr.c_str());
debugC(1, kDebugLingoCompile, "[%5d] %s", pc, instr.c_str());
}
debugC(1, kDebugLingoExec, "<end define code>");
debugC(1, kDebugLingoCompile, "<end define code>");
}

return sym;

0 comments on commit 6060ec7

Please sign in to comment.
You can’t perform that action at this time.