aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-08 22:13:24 +0100
committerEugene Sandulenko2020-01-08 23:08:13 +0100
commit5fb8660a544f0b5f7d5b17ee1b57aedac388916a (patch)
tree1be81707a29ae4888c5c2bdab7f33be554ee4507 /engines
parent8b8aebadcb45876027fdc8c80880bb51f7ff1055 (diff)
downloadscummvm-rg350-5fb8660a544f0b5f7d5b17ee1b57aedac388916a.tar.gz
scummvm-rg350-5fb8660a544f0b5f7d5b17ee1b57aedac388916a.tar.bz2
scummvm-rg350-5fb8660a544f0b5f7d5b17ee1b57aedac388916a.zip
DIRECTOR: Set correct script cast type when parsing
Diffstat (limited to 'engines')
-rw-r--r--engines/director/score.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 533c684677..e92a68dfd1 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -768,9 +768,9 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
if (!ci->script.empty()) {
// the script type here could be wrong!
if (ConfMan.getBool("dump_scripts"))
- dumpScript(ci->script.c_str(), kCastScript, id);
+ dumpScript(ci->script.c_str(), ((ScriptCast *)_loadedCast->getVal(id))->_scriptType, id);
- _lingo->addCode(ci->script.c_str(), kCastScript, id);
+ _lingo->addCode(ci->script.c_str(), ((ScriptCast *)_loadedCast->getVal(id))->_scriptType, id);
}
}