aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-07-10 20:07:45 +1000
committerPaul Gilbert2011-07-10 20:07:45 +1000
commitf33ac85e795a0f5abba29bcca365315f3b343310 (patch)
treee3c3f070302bec270db55e13d56489452e4f314d /engines
parent9efefdbced8af533e09f7cba703ccbe31dfa6f80 (diff)
downloadscummvm-rg350-f33ac85e795a0f5abba29bcca365315f3b343310.tar.gz
scummvm-rg350-f33ac85e795a0f5abba29bcca365315f3b343310.tar.bz2
scummvm-rg350-f33ac85e795a0f5abba29bcca365315f3b343310.zip
CGE: Bugfixes for some crashes
Diffstat (limited to 'engines')
-rw-r--r--engines/cge/gettext.cpp4
-rw-r--r--engines/cge/vga13h.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/cge/gettext.cpp b/engines/cge/gettext.cpp
index 2ee6dc42eb..f5c62809db 100644
--- a/engines/cge/gettext.cpp
+++ b/engines/cge/gettext.cpp
@@ -40,8 +40,12 @@ GetText::GetText(CGEEngine *vm, const char *info, char *text, int size)
int i = 2 * TEXT_HM + _font->width(info);
_ptr = this;
_mode = RECT;
+
+ _ts = new BMP_PTR[2];
_ts[0] = box((i + 3) & ~3, 2 * TEXT_VM + 2 * FONT_HIG + TEXT_LS);
+ _ts[1] = NULL;
setShapeList(_ts);
+
_flags._bDel = true;
_flags._kill = true;
memcpy(_buff, text, _len);
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp
index 9498b04e8c..d92b9e97f0 100644
--- a/engines/cge/vga13h.cpp
+++ b/engines/cge/vga13h.cpp
@@ -1402,6 +1402,8 @@ PocLight::PocLight(CGEEngine *vm): Sprite(vm, NULL) {
LI[4] = NULL;
setShapeList(LI);
+
+ _flags._kill = false;
}
} // End of namespace CGE