diff options
Diffstat (limited to 'engines/sci/scicore/resource.cpp')
-rw-r--r-- | engines/sci/scicore/resource.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/sci/scicore/resource.cpp b/engines/sci/scicore/resource.cpp index 5f2e2ce277..d2305422c6 100644 --- a/engines/sci/scicore/resource.cpp +++ b/engines/sci/scicore/resource.cpp @@ -309,8 +309,10 @@ int sci_test_view_type(ResourceManager *mgr) { compression = sci0_get_compression_method(file); file.close(); - if (compression == 3) - return (mgr->sci_version = SCI_VERSION_01_VGA); + if (compression == 3) { + mgr->sci_version = SCI_VERSION_01_VGA; + return mgr->sci_version; + } } // Try the same thing with pics @@ -332,8 +334,10 @@ int sci_test_view_type(ResourceManager *mgr) { compression = sci0_get_compression_method(file); file.close(); - if (compression == 3) - return (mgr->sci_version = SCI_VERSION_01_VGA); + if (compression == 3) { + mgr->sci_version = SCI_VERSION_01_VGA; + return mgr->sci_version; + } } return mgr->sci_version; @@ -428,6 +432,8 @@ static int _scir_scan_new_sources(ResourceManager *mgr, int *detected_version, R mgr->sci_version = *detected_version; break; + default: + break; } qsort(mgr->_resources, mgr->_resourcesNr, sizeof(resource_t), resourcecmp); // Sort resources } |