aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/score.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 3fab9cf011..2b7465010b 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -510,14 +510,14 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
debugC(4, kDebugLoading, "'");
CastInfo *ci = new CastInfo();
-
+
if (castStrings.size() == 5) {
ci->script = castStrings[0];
ci->name = castStrings[1];
ci->directory = castStrings[2];
ci->fileName = castStrings[3];
ci->type = castStrings[4];
-
+
if (!ci->script.empty()) {
//the script type here could be wrong!
_lingo->addCode(ci->script.c_str(), kCastScript, id);
@@ -674,6 +674,9 @@ void Score::dumpScript(const char *script, ScriptType type, uint16 id) {
case kSpriteScript:
typeName = "sprite";
break;
+ case kCastScript:
+ typeName = "cast";
+ break;
}
sprintf(buf, "./dumps/%s-%s-%d.txt", _macName.c_str(), typeName.c_str(), id);