From d636d4c23a246ae5f5b76c1925b722e8e3348c81 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 24 May 2006 21:56:14 +0000 Subject: Fix crash. Console should be created after graphics init svn-id: r22619 --- engines/agi/agi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3