diff options
Diffstat (limited to 'engines/parallaction/defs.h')
-rw-r--r-- | engines/parallaction/defs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/parallaction/defs.h b/engines/parallaction/defs.h index 8757b2c5f6..d1b5730a40 100644 --- a/engines/parallaction/defs.h +++ b/engines/parallaction/defs.h @@ -74,6 +74,11 @@ struct StaticCnv { uint16 _height; // byte* _data0; // bitmap byte* _data1; // unused + + StaticCnv() { + _width = _height = 0; + _data0 = _data1 = NULL; + } }; @@ -85,6 +90,11 @@ struct Cnv { byte** _array; // frames data public: + Cnv() { + _width = _height = _count = 0; + _array = NULL; + } + byte* getFramePtr(uint16 index) { if (index >= _count) error("frame %i does not exist", index); @@ -125,3 +135,4 @@ enum { #endif + |