aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-17 19:15:55 +0000
committerFilippos Karapetis2010-08-17 19:15:55 +0000
commit478f6bfc6f4649b24fe5547b85d052b6afcff451 (patch)
tree033b1ded31d98c6d4401639de4296156883c951a /engines/sci
parentbdedf90c59ef28a999a3d13d8d2987f896cf31a6 (diff)
downloadscummvm-rg350-478f6bfc6f4649b24fe5547b85d052b6afcff451.tar.gz
scummvm-rg350-478f6bfc6f4649b24fe5547b85d052b6afcff451.tar.bz2
scummvm-rg350-478f6bfc6f4649b24fe5547b85d052b6afcff451.zip
SCI: Fix for bug #3046800 - "SCI Fallback detector crashes with several games"
svn-id: r52163
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/resource.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}