aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/lure.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp
index 10f58adf4c..ef05500318 100644
--- a/engines/lure/lure.cpp
+++ b/engines/lure/lure.cpp
@@ -117,6 +117,8 @@ int LureEngine::go() {
error("Sorry - copy protection failed");
}
+ Game *gameInstance = new Game();
+
if (ConfMan.getInt("boot_param") == 0) {
// Show the introduction
Sound.loadSection(INTRO_SOUND_RESOURCE_ID);
@@ -130,12 +132,10 @@ int LureEngine::go() {
if (!_events->quitFlag) {
// Play the game
Sound.loadSection(MAIN_SOUND_RESOURCE_ID);
- Game *gameInstance = new Game();
gameInstance->execute();
- delete gameInstance;
}
- //quitGame();
+ delete gameInstance;
return 0;
}