aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-02 16:43:17 +0100
committerEugene Sandulenko2020-01-02 16:43:17 +0100
commit39728ee0294c2d70b269e1a0f8c85f62805e09e8 (patch)
treedb023c8395ecaa64ce788f40405c2159a3ed5817
parent923b8ea3124ee9682e45855a4a51f877e02b3a8a (diff)
downloadscummvm-rg350-39728ee0294c2d70b269e1a0f8c85f62805e09e8.tar.gz
scummvm-rg350-39728ee0294c2d70b269e1a0f8c85f62805e09e8.tar.bz2
scummvm-rg350-39728ee0294c2d70b269e1a0f8c85f62805e09e8.zip
DIRECTOR: Create dummy Shared Cast when there is none present
-rw-r--r--engines/director/director.cpp2
-rw-r--r--engines/director/resource.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 779ca732a1..464b24c7a4 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -64,8 +64,6 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam
// Load Patterns
loadPatterns();
- _sharedScore = nullptr;
-
_currentScore = nullptr;
_soundManager = nullptr;
_currentPalette = nullptr;
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index 1e93ebf136..4d5f9a9cd4 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -284,6 +284,8 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
if (!shardcst->openFile(filename)) {
warning("No shared cast %s", filename.c_str());
+ _sharedScore = new Score(this);
+
return;
}