From 75015e02a33e635211313bf053b05df166a068bc Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 11 Jan 2020 12:09:15 +0100 Subject: DIRECTOR: Fix loaded cast references --- engines/director/score.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 cast = _movieArchive->getResourceIDList(MKTAG('C', 'A', 'S', 't')); - _loadedCast = new Common::HashMap(); + if (!_loadedCast) + _loadedCast = new Common::HashMap(); if (cast.size() > 0) { debugC(2, kDebugLoading, "****** Loading %d CASt resources", cast.size()); -- cgit v1.2.3