diff options
author | Eugene Sandulenko | 2020-01-08 22:13:24 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-08 23:08:13 +0100 |
commit | 5fb8660a544f0b5f7d5b17ee1b57aedac388916a (patch) | |
tree | 1be81707a29ae4888c5c2bdab7f33be554ee4507 /engines | |
parent | 8b8aebadcb45876027fdc8c80880bb51f7ff1055 (diff) | |
download | scummvm-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.cpp | 4 |
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); } } |