MADS: Initialize some variables in FontManager

This commit is contained in:
Strangerke 2014-05-27 00:40:07 +02:00
parent 7caf5fba4b
commit 57c5656169

View File

@ -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);
}