diff options
author | Strangerke | 2014-05-27 00:40:07 +0200 |
---|---|---|
committer | Strangerke | 2014-05-27 00:40:07 +0200 |
commit | 57c5656169d4736e2867aad60983b9a9ad9400a3 (patch) | |
tree | 36c088a049b593865b76e0e54532ba5b8ce82e81 /engines/mads | |
parent | 7caf5fba4b748b0dc1cbe381b100e4a6682279b6 (diff) | |
download | scummvm-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.cpp | 6 |
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); } |