Skip to content

Commit

Permalink
DIRECTOR: Lingo: Issue warning instead of error at unhandled types
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 3fb7f5a commit 06dd365
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/director/lingo/lingo-code.cpp
Expand Up @@ -190,8 +190,9 @@ void Lingo::c_assign() {
delete d2.u.arr;
} else if (d2.type == SYMBOL) {
d1.u.sym->u.i = d2.u.i;
else
error("c_assign: unhandled type: %s", d2.type2str());
} else {
warning("c_assign: unhandled type: %s", d2.type2str());
}

d1.u.sym->type = d2.type;

Expand Down Expand Up @@ -236,7 +237,7 @@ void Lingo::c_eval() {
else if (d.u.sym->type == SYMBOL)
d.u.i = d.u.sym->u.i;
else
error("c_eval: unhandled type: %s", d.type2str());
warning("c_eval: unhandled type: %s", d.type2str());

g_lingo->push(d);
}
Expand Down

0 comments on commit 06dd365

Please sign in to comment.