aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cge.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-05 21:07:14 +1000
committerPaul Gilbert2011-07-05 21:07:14 +1000
commit44490c378dd78f8a51203ca8c3d45126bbd9fd08 (patch)
treed0b9fa933c68d11a8df25387111df1a9e1dc877c /engines/cge/cge.cpp
parent41c7482a525951407dfa09b9793eeef140f21979 (diff)
downloadscummvm-rg350-44490c378dd78f8a51203ca8c3d45126bbd9fd08.tar.gz
scummvm-rg350-44490c378dd78f8a51203ca8c3d45126bbd9fd08.tar.bz2
scummvm-rg350-44490c378dd78f8a51203ca8c3d45126bbd9fd08.zip
CGE: _hero isn't meant to be instantiated during the engine setup
Diffstat (limited to 'engines/cge/cge.cpp')
-rw-r--r--engines/cge/cge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 7eeb20bebb..df40db55e6 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -58,6 +58,7 @@ CGEEngine::CGEEngine(OSystem *syst, const ADGameDescription *gameDescription)
void CGEEngine::setup() {
// Initialise fields
_lastFrame = 0;
+ _hero = NULL;
// Create debugger console
_console = new CGEConsole(this);
@@ -72,7 +73,6 @@ void CGEEngine::setup() {
_text = new Text(this, progName(), 128);
_vga = new Vga(M13H);
_heart = new Heart;
- _hero = new WALK(this, NULL);
_sys = new System(this);
_pocLight = new Sprite(this, LI);
for (int i = 0; i < POCKET_NX; i++)