aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/saveload_lok.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/saveload_lok.cpp')
-rw-r--r--engines/kyra/saveload_lok.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/saveload_lok.cpp b/engines/kyra/saveload_lok.cpp
index 3548723610..d5ff36480c 100644
--- a/engines/kyra/saveload_lok.cpp
+++ b/engines/kyra/saveload_lok.cpp
@@ -163,7 +163,7 @@ Common::Error KyraEngine_LoK::loadGameState(int slot) {
// it wasn't made sure that _curSfxFile was initialized
// so if it's out of bounds we just set it to 0.
if (_flags.platform == Common::kPlatformFMTowns || _flags.platform == Common::kPlatformPC98) {
- if (_curSfxFile >= _soundData->_fileListLen || _curSfxFile < 0)
+ if (_curSfxFile >= _soundData->fileListLen || _curSfxFile < 0)
_curSfxFile = 0;
_sound->loadSoundFile(_curSfxFile);
}