aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-11 12:09:15 +0100
committerEugene Sandulenko2020-01-11 12:09:15 +0100
commit75015e02a33e635211313bf053b05df166a068bc (patch)
treed87c104efc3a5ec3cacd6165bbebb7d035fa036c /engines
parentff6e864392cdf9089aeaeee085dcafd0440b8049 (diff)
downloadscummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.tar.gz
scummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.tar.bz2
scummvm-rg350-75015e02a33e635211313bf053b05df166a068bc.zip
DIRECTOR: Fix loaded cast references
Diffstat (limited to 'engines')
-rw-r--r--engines/director/score.cpp3
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());