diff options
Diffstat (limited to 'engines/kyra/saveload_v1.cpp')
-rw-r--r-- | engines/kyra/saveload_v1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/saveload_v1.cpp b/engines/kyra/saveload_v1.cpp index 21a4f724d1..549afc46e0 100644 --- a/engines/kyra/saveload_v1.cpp +++ b/engines/kyra/saveload_v1.cpp @@ -202,7 +202,7 @@ void KyraEngine_v1::loadGame(const char *fileName) { // In the first version when this entry was introduced, // it wasn't made sure that _curSfxFile was initialized // so if it's out of bounds we just set it to 0. - if (_curSfxFile >= _soundFilesTownsCount || _curSfxFile < 0) + if (_curSfxFile >= (int)_soundData_TOWNS->_fileListLen || _curSfxFile < 0) _curSfxFile = 0; if (_flags.platform == Common::kPlatformFMTowns || _flags.platform == Common::kPlatformPC98) |