diff options
-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); } |