From 478f6bfc6f4649b24fe5547b85d052b6afcff451 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 17 Aug 2010 19:15:55 +0000 Subject: SCI: Fix for bug #3046800 - "SCI Fallback detector crashes with several games" svn-id: r52163 --- engines/sci/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 00f50714af..72db9102e2 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -2062,7 +2062,7 @@ void ResourceManager::detectSciVersion() { // is increment here, but ignore for all the regular sci1late games // the problem is, we dont have access to that detection till later // so maybe (part of?) that detection should get moved in here - if ((g_sci->getGameId() == GID_LSL1) && (g_sci->getLanguage() == Common::ES_ESP)) { + if (g_sci && (g_sci->getGameId() == GID_LSL1) && (g_sci->getLanguage() == Common::ES_ESP)) { s_sciVersion = SCI_VERSION_1_MIDDLE; return; } -- cgit v1.2.3