aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cge/cge.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp
index 731f92854e..55b79d5b35 100644
--- a/engines/cge/cge.cpp
+++ b/engines/cge/cge.cpp
@@ -78,7 +78,9 @@ void CGEEngine::setup() {
_pocket[i] = new Sprite(this, NULL);
_sprite = new Sprite(this, NULL);
_miniCave = new Sprite(this, NULL);
+ _miniCave->_flags._kill = false;
_shadow = new Sprite(this, NULL);
+ _shadow->_flags._kill = false;
_horzLine = new HorizLine(this);
_infoLine = new InfoLine(this, INFO_W);
_cavLight = new CavLight(this);
@@ -138,7 +140,7 @@ CGEEngine::~CGEEngine() {
// Delete engine objects
delete _vga;
delete _sys;
- delete _sprite;
+ //delete _sprite; Sprite is destroyed by the queue it's added to
delete _miniCave;
delete _shadow;
delete _horzLine;