From 0ae5ca631c6d38b3bc06fc6113fabd1f549c8708 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 28 Mar 2020 16:41:39 +0100 Subject: [PATCH] DIRECTOR: Do not error on bad movies --- engines/director/score.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engines/director/score.cpp b/engines/director/score.cpp index d4c8304ca29..a9c1df67bc0 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -142,7 +142,10 @@ void Score::loadArchive() { } // Score - assert(_movieArchive->hasResource(MKTAG('V', 'W', 'S', 'C'), -1)); + if (!_movieArchive->hasResource(MKTAG('V', 'W', 'S', 'C'), -1)) { + warning("Score::loadArchive(): Wrong movie format. VWSC resource missing"); + return; + } loadFrames(*_movieArchive->getFirstResource(MKTAG('V', 'W', 'S', 'C'))); // Configuration Information