aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vga13h.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/vga13h.cpp')
-rw-r--r--engines/cge/vga13h.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 0e865ffd90..83c89892ca 100644
--- a/engines/cge/vga13h.cpp
+++ b/engines/cge/vga13h.cpp
@@ -366,6 +366,8 @@ Sprite::Sprite(CGEEngine *vm, BMP_PTR *shp)
Sprite::~Sprite() {
+ if (_sprite == this)
+ _sprite = NULL;
contract();
}
@@ -970,11 +972,13 @@ VGA::~VGA(void) {
Mono = 0;
if (isVga()) {
Common::String buffer = "";
+/*
Clear(0);
SetMode(OldMode);
SetColors();
RestoreScreen(OldScreen);
Sunrise(OldColors);
+*/
if (OldColors)
free(OldColors);
if (NewColors)