aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/engine.cpp1
-rw-r--r--simon/simon.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/common/engine.cpp b/common/engine.cpp
index 2ccc9a9a4a..f507629771 100644
--- a/common/engine.cpp
+++ b/common/engine.cpp
@@ -83,7 +83,6 @@ Engine *Engine::createFromDetector(GameDetector *detector, OSystem *syst)
if (detector->_gameId >= GID_SIMON_FIRST && detector->_gameId <= GID_SIMON_LAST) {
// Simon the Sorcerer
- detector->_gameId -= GID_SIMON_FIRST;
engine = Engine_SIMON_create(detector, syst);
} else {
// Some kind of Scumm game
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 3e018434fc..cc6bcfb646 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -166,7 +166,7 @@ SimonState::SimonState(GameDetector *detector, OSystem *syst)
driver = MidiDriver_NULL_create();
midi.set_driver(driver);
- _game = detector->_gameId;
+ _game = detector->_gameId - GID_SIMON_FIRST;
/* Setup mixer */
if (!_mixer->bindToSystem(syst))