diff options
author | Eugene Sandulenko | 2006-05-24 21:56:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-05-24 21:56:14 +0000 |
commit | d636d4c23a246ae5f5b76c1925b722e8e3348c81 (patch) | |
tree | a09f3414810bb7d24866c53f4e3a7d205f483e17 /engines/agi | |
parent | 383b598c5cde4c64729d89a7ca84039dc5fabb58 (diff) | |
download | scummvm-rg350-d636d4c23a246ae5f5b76c1925b722e8e3348c81.tar.gz scummvm-rg350-d636d4c23a246ae5f5b76c1925b722e8e3348c81.tar.bz2 scummvm-rg350-d636d4c23a246ae5f5b76c1925b722e8e3348c81.zip |
Fix crash. Console should be created after graphics init
svn-id: r22619
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 4d2f2e7da9..5342b6b098 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -459,8 +459,6 @@ AgiEngine::AgiEngine(OSystem * syst) : Engine(syst) { rnd = new Common::RandomSource(); - _console = new Console(this); - Common::addSpecialDebugLevel(kDebugLevelMain, "Main", "Generic debug level"); Common::addSpecialDebugLevel(kDebugLevelResources, "Resources", "Resources debugging"); Common::addSpecialDebugLevel(kDebugLevelSprites, "Sprites", "Sprites debugging"); @@ -481,6 +479,8 @@ void AgiEngine::initialize() { opt.hires = true; opt.soundemu = SOUND_EMU_NONE; + _console = new Console(this); + init_machine(); game.color_fg = 15; |