diff options
author | Eugene Sandulenko | 2020-01-08 23:41:28 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-08 23:42:11 +0100 |
commit | 3b706314dadde2d6b420e8c88847d7b778c397c4 (patch) | |
tree | f19448c094194d10c4f025b6f782c6447b2963a9 | |
parent | 40bf41bf309664f7945f92083b71a03d4604e631 (diff) | |
download | scummvm-rg350-3b706314dadde2d6b420e8c88847d7b778c397c4.tar.gz scummvm-rg350-3b706314dadde2d6b420e8c88847d7b778c397c4.tar.bz2 scummvm-rg350-3b706314dadde2d6b420e8c88847d7b778c397c4.zip |
DIRECTOR: Correctly set script type for Lscr bytecode
-rw-r--r-- | engines/director/score.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 88927c1366..67eb27b74e 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -781,7 +781,7 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id, uint scriptId = ((ScriptCast *)(*_loadedCast)[id])->_id - 1; if (scriptId < _castScriptIds.size()) { int resourceId = _castScriptIds[scriptId]; - _lingo->addCodeV4(*_movieArchive->getResource(MKTAG('L', 's', 'c', 'r'), resourceId), kCastScript, id); + _lingo->addCodeV4(*_movieArchive->getResource(MKTAG('L', 's', 'c', 'r'), resourceId), ((ScriptCast *)_loadedCast->getVal(id))->_scriptType, id); } else { warning("Score::loadCastData(): Lingo context missing a resource entry for script %d referenced in cast %d", scriptId, id); } |