diff options
| author | Filippos Karapetis | 2010-06-09 18:42:21 +0000 |
|---|---|---|
| committer | Filippos Karapetis | 2010-06-09 18:42:21 +0000 |
| commit | c486b77bb7d96908d7df1e00b6a61b92fbd176ee (patch) | |
| tree | cb06f541fad894588a9d27ef8329792f5299f7fb /engines/sci/engine/kernel32.cpp | |
| parent | d191c9d0f935d280d7c1a7e71e3e13bbb76ee893 (diff) | |
| download | scummvm-rg350-c486b77bb7d96908d7df1e00b6a61b92fbd176ee.tar.gz scummvm-rg350-c486b77bb7d96908d7df1e00b6a61b92fbd176ee.tar.bz2 scummvm-rg350-c486b77bb7d96908d7df1e00b6a61b92fbd176ee.zip | |
Fixed crash in SCI2.1 games
svn-id: r49546
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
| -rw-r--r-- | engines/sci/engine/kernel32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 0afdc3f2eb..f279d9a66f 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -378,7 +378,7 @@ void Kernel::setKernelNamesSci2() { _kernelNames = Common::StringArray(sci2_default_knames, kKernelEntriesSci2); } -void Kernel::setKernelNamesSci21() { +void Kernel::setKernelNamesSci21(GameFeatures *features) { // Some SCI games use a modified SCI2 kernel table instead of the SCI2.1/SCI3 kernel table. // The GK2 demo does this as well as at least one version of KQ7. We detect which version // to use based on where kDoSound is called from Sound::play(). @@ -386,7 +386,7 @@ void Kernel::setKernelNamesSci21() { // This is interesting because they all have the same interpreter version (2.100.002), yet // they would not be compatible with other games of the same interpreter. - if (g_sci->_features->detectSci21KernelType() == SCI_VERSION_2) { + if (features->detectSci21KernelType() == SCI_VERSION_2) { _kernelNames = Common::StringArray(sci2_default_knames, kKernelEntriesGk2Demo); // OnMe is IsOnMe here, but they should be compatible _kernelNames[0x23] = "Robot"; // Graph in SCI2 |
