[Scummvm-cvs-logs] scummvm master -> 57c5656169d4736e2867aad60983b9a9ad9400a3

Strangerke Strangerke at scummvm.org
Tue May 27 00:41:30 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
57c5656169 MADS: Initialize some variables in FontManager


Commit: 57c5656169d4736e2867aad60983b9a9ad9400a3
    https://github.com/scummvm/scummvm/commit/57c5656169d4736e2867aad60983b9a9ad9400a3
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-05-27T00:40:07+02:00

Commit Message:
MADS: Initialize some variables in FontManager

Changed paths:
    engines/mads/font.cpp



diff --git a/engines/mads/font.cpp b/engines/mads/font.cpp
index 6f2d2b8..6af1346 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);
 }
 






More information about the Scummvm-git-logs mailing list