diff options
-rw-r--r-- | engines/sci/sci.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index de608a2765..63fba8eeb0 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -167,12 +167,17 @@ Common::Error SciEngine::run() { return Common::kUnknownError; #ifdef ENABLE_SCI32 - if (getSciVersion() >= SCI_VERSION_2) + if (getSciVersion() >= SCI_VERSION_2) { + _gamestate->_gui = 0; _gamestate->_gui32 = new SciGui32(_gamestate, screen, palette, cursor); - else -#endif + } else { _gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio); - + _gamestate->_gui32 = 0; + } +#else + _gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio); + _gamestate->_gui32 = 0; +#endif if (game_init(_gamestate)) { /* Initialize */ warning("Game initialization failed: Aborting..."); |