[Scummvm-cvs-logs] scummvm master -> dde622174c9093458cd448f6db11459c8e1ac59f

fuzzie fuzzie at fuzzie.org
Sat Jun 25 09:54:54 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
dde622174c MOHAWK: Don't crash when getting odd types from LB target expressions.


Commit: dde622174c9093458cd448f6db11459c8e1ac59f
    https://github.com/scummvm/scummvm/commit/dde622174c9093458cd448f6db11459c8e1ac59f
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-06-25T00:51:50-07:00

Commit Message:
MOHAWK: Don't crash when getting odd types from LB target expressions.

(Thanks to [md5] for pointing it out.)

Changed paths:
    engines/mohawk/livingbooks.cpp



diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index c1c1dfc..397281f 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) {






More information about the Scummvm-git-logs mailing list