From 53fd38f56dae3e14605b098eaece16f7c4ff73f4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 28 Oct 2016 11:13:44 +0200 Subject: DIRECTOR: Fix crash when there is no shared casts present --- engines/director/resource.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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; + return; } -- cgit v1.2.3