diff options
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r-- | simon/simon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 4a2d325003..e12817e5cb 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -818,8 +818,7 @@ void SimonState::loadTablesIntoMem(uint subr_id) if (_game == GAME_SIMON1WIN ) _sound->readSfxFile(filename, _gameDataPath); else if (_game & GAME_SIMON2) { - int set = atoi(filename + 6) - 1; - _sound->loadSfxTable(_game_file, _game_offsets_ptr[set + gss->SOUND_INDEX_BASE], set); + _sound->loadSfxTable(_game_file, _game_offsets_ptr[atoi(filename + 6) - 1 + gss->SOUND_INDEX_BASE]); } alignTableMem(); |