diff options
author | Eugene Sandulenko | 2020-01-11 12:09:15 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-11 12:09:15 +0100 |
commit | 75015e02a33e635211313bf053b05df166a068bc (patch) | |
tree | d87c104efc3a5ec3cacd6165bbebb7d035fa036c /engines/director | |
parent | ff6e864392cdf9089aeaeee085dcafd0440b8049 (diff) | |
download | scummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.tar.gz scummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.tar.bz2 scummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.zip |
DIRECTOR: Fix loaded cast references
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/score.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 8b600e5da5..e88c3aa88c 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -223,7 +223,8 @@ void Score::loadArchive() { } Common::Array<uint16> cast = _movieArchive->getResourceIDList(MKTAG('C', 'A', 'S', 't')); - _loadedCast = new Common::HashMap<int, Cast *>(); + if (!_loadedCast) + _loadedCast = new Common::HashMap<int, Cast *>(); if (cast.size() > 0) { debugC(2, kDebugLoading, "****** Loading %d CASt resources", cast.size()); |