aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-30 20:52:46 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit06dd3651c7f86478deedabf6b530d11b78858c6b (patch)
treee0c94b910188f6688f65efffe43f7af8150c9032 /engines
parent3fb7f5ac7bf02ae88026be59daed02475af4149f (diff)
downloadscummvm-rg350-06dd3651c7f86478deedabf6b530d11b78858c6b.tar.gz
scummvm-rg350-06dd3651c7f86478deedabf6b530d11b78858c6b.tar.bz2
scummvm-rg350-06dd3651c7f86478deedabf6b530d11b78858c6b.zip
DIRECTOR: Lingo: Issue warning instead of error at unhandled types
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-code.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp
index ab42c0d3de..0bc6c9d0b6 100644
--- a/engines/director/lingo/lingo-code.cpp
+++ b/engines/director/lingo/lingo-code.cpp
@@ -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;
@@ -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);
}