aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-28 11:13:44 +0200
committerEugene Sandulenko2016-10-29 08:07:19 -0700
commit53fd38f56dae3e14605b098eaece16f7c4ff73f4 (patch)
tree7bb938c793da11d13f27cd45e683fa151126db3b
parentf2251c0d71cec801af6ec1019dcf21ac25b76462 (diff)
downloadscummvm-rg350-53fd38f56dae3e14605b098eaece16f7c4ff73f4.tar.gz
scummvm-rg350-53fd38f56dae3e14605b098eaece16f7c4ff73f4.tar.bz2
scummvm-rg350-53fd38f56dae3e14605b098eaece16f7c4ff73f4.zip
DIRECTOR: Fix crash when there is no shared casts present
-rw-r--r--engines/director/resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index a704918860..61e46e9a8d 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -197,6 +197,8 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
if (!shardcst->openFile(filename)) {
warning("No shared cast %s", filename.c_str());
+ _sharedCasts = new Common::HashMap<int, Cast *>;
+
return;
}