[Scummvm-git-logs] scummvm master -> 75015e02a33e635211313bf053b05df166a068bc

sev- sev at scummvm.org
Sat Jan 11 11:09:45 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
75015e02a3 DIRECTOR: Fix loaded cast  references


Commit: 75015e02a33e635211313bf053b05df166a068bc
    https://github.com/scummvm/scummvm/commit/75015e02a33e635211313bf053b05df166a068bc
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-01-11T12:09:15+01:00

Commit Message:
DIRECTOR: Fix loaded cast  references

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 8b600e5..e88c3aa 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());




More information about the Scummvm-git-logs mailing list