diff options
author | Eugene Sandulenko | 2016-10-28 11:13:44 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-29 08:07:19 -0700 |
commit | 53fd38f56dae3e14605b098eaece16f7c4ff73f4 (patch) | |
tree | 7bb938c793da11d13f27cd45e683fa151126db3b | |
parent | f2251c0d71cec801af6ec1019dcf21ac25b76462 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |