diff options
author | Alyssa Milburn | 2011-06-25 09:51:50 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-06-25 09:51:50 +0200 |
commit | dde622174c9093458cd448f6db11459c8e1ac59f (patch) | |
tree | 3cd799c6090a286e0c03767f70724f455f758204 | |
parent | f46be3394ae5d714eb30b0776520fc0c110e3481 (diff) | |
download | scummvm-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.)
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 3 |
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) { |