Skip to content

Commit

Permalink
WAGE: Fix crash at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 11, 2016
1 parent faa2588 commit 856a4e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/wage/wage.cpp
Expand Up @@ -95,8 +95,6 @@ Common::Error WageEngine::run() {

debug("WageEngine::init");

_gui = new Gui(this);

// Your main event loop should be (invoked from) here.
_resManager = new Common::MacResManager();
_resManager->open(getGameFile());
Expand All @@ -106,6 +104,8 @@ Common::Error WageEngine::run() {
if (!_world->loadWorld(_resManager))
return Common::kNoGameDataFoundError;

_gui = new Gui(this);

_temporarilyHidden = true;
performInitialSetup();
Common::String input("look");
Expand Down

0 comments on commit 856a4e1

Please sign in to comment.