aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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());