aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2013-05-01 01:07:10 +0300
committerFilippos Karapetis2013-05-01 01:51:10 +0300
commit619baf67aebdf64981dd58040094eeb3def4a106 (patch)
treee4fc1d42645ff0120b4dfe7675e85976abb0a3b3
parent0638d85ada88ed7115d96e06216f9daea563d9ac (diff)
downloadscummvm-rg350-619baf67aebdf64981dd58040094eeb3def4a106.tar.gz
scummvm-rg350-619baf67aebdf64981dd58040094eeb3def4a106.tar.bz2
scummvm-rg350-619baf67aebdf64981dd58040094eeb3def4a106.zip
SCI: Initialize some members of GfxPaint16 - CID 1010057
-rw-r--r--engines/sci/graphics/paint16.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp
index 25b373a011..940a1ac3cf 100644
--- a/engines/sci/graphics/paint16.cpp
+++ b/engines/sci/graphics/paint16.cpp
@@ -42,7 +42,13 @@
namespace Sci {
GfxPaint16::GfxPaint16(ResourceManager *resMan, SegManager *segMan, GfxCache *cache, GfxPorts *ports, GfxCoordAdjuster *coordAdjuster, GfxScreen *screen, GfxPalette *palette, GfxTransitions *transitions, AudioPlayer *audio)
- : _resMan(resMan), _segMan(segMan), _cache(cache), _ports(ports), _coordAdjuster(coordAdjuster), _screen(screen), _palette(palette), _transitions(transitions), _audio(audio) {
+ : _resMan(resMan), _segMan(segMan), _cache(cache), _ports(ports),
+ _coordAdjuster(coordAdjuster), _screen(screen), _palette(palette),
+ _transitions(transitions), _audio(audio), _EGAdrawingVisualize(false) {
+
+ // _animate and _text16 will be initialized later on
+ _animate = NULL;
+ _text16 = NULL;
}
GfxPaint16::~GfxPaint16() {
@@ -51,8 +57,6 @@ GfxPaint16::~GfxPaint16() {
void GfxPaint16::init(GfxAnimate *animate, GfxText16 *text16) {
_animate = animate;
_text16 = text16;
-
- _EGAdrawingVisualize = false;
}
void GfxPaint16::debugSetEGAdrawingVisualize(bool state) {