aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorStrangerke2014-05-27 00:40:07 +0200
committerStrangerke2014-05-27 00:40:07 +0200
commit57c5656169d4736e2867aad60983b9a9ad9400a3 (patch)
tree36c088a049b593865b76e0e54532ba5b8ce82e81 /engines/mads
parent7caf5fba4b748b0dc1cbe381b100e4a6682279b6 (diff)
downloadscummvm-rg350-57c5656169d4736e2867aad60983b9a9ad9400a3.tar.gz
scummvm-rg350-57c5656169d4736e2867aad60983b9a9ad9400a3.tar.bz2
scummvm-rg350-57c5656169d4736e2867aad60983b9a9ad9400a3.zip
MADS: Initialize some variables in FontManager
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/font.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mads/font.cpp b/engines/mads/font.cpp
index 6f2d2b8168..6af1346f01 100644
--- a/engines/mads/font.cpp
+++ b/engines/mads/font.cpp
@@ -63,10 +63,16 @@ Font *Font::getFont(const Common::String &fontName) {
}
Font::Font() {
+ _charWidths = nullptr;
+ _charOffs = nullptr;
+ _charData = nullptr;
setFont(FONT_INTERFACE);
}
Font::Font(const Common::String &filename) {
+ _charWidths = nullptr;
+ _charOffs = nullptr;
+ _charData = nullptr;
setFont(filename);
}