aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2011-06-25 09:51:50 +0200
committerAlyssa Milburn2011-06-25 09:51:50 +0200
commitdde622174c9093458cd448f6db11459c8e1ac59f (patch)
tree3cd799c6090a286e0c03767f70724f455f758204 /engines/mohawk/livingbooks.cpp
parentf46be3394ae5d714eb30b0776520fc0c110e3481 (diff)
downloadscummvm-rg350-dde622174c9093458cd448f6db11459c8e1ac59f.tar.gz
scummvm-rg350-dde622174c9093458cd448f6db11459c8e1ac59f.tar.bz2
scummvm-rg350-dde622174c9093458cd448f6db11459c8e1ac59f.zip
MOHAWK: Don't crash when getting odd types from LB target expressions.
(Thanks to [md5] for pointing it out.)
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r--engines/mohawk/livingbooks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index c1c1dfc875..397281fe74 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -2637,7 +2637,8 @@ int LBItem::runScriptEntry(LBScriptEntry *entry) {
break;
default:
// FIXME: handle list
- debug(2, "Target '%s' (by expression) resulted in unknown type, skipping", entry->targets[n].c_str());
+ warning("Target '%s' (by expression) resulted in unknown type, skipping", entry->targets[n].c_str());
+ continue;
}
}
if (!target) {