aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/font.cpp')
-rw-r--r--engines/parallaction/font.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/parallaction/font.cpp b/engines/parallaction/font.cpp
index 57b04deb12..0476b15971 100644
--- a/engines/parallaction/font.cpp
+++ b/engines/parallaction/font.cpp
@@ -70,6 +70,8 @@ public:
_data = (byte *)malloc(size);
stream.read(_data, size);
+ _cp = 0;
+ _bufPitch = 0;
}
~BraFont() {
@@ -302,7 +304,7 @@ protected:
}
public:
- DosFont(Cnv *cnv) : _data(cnv), _pitch(cnv->_width) {
+ DosFont(Cnv *cnv) : _data(cnv), _pitch(cnv->_width), _cp(NULL), _bufPitch(0) {
}
~DosFont() {