Fixed uninitialised fields in ImBitmapFont (were unused when uninitialised, but still dodgy)

This commit is contained in:
ocornut 2014-08-26 18:14:04 +01:00
parent 681ac5f777
commit 5f6b261c9b

View File

@ -5030,11 +5030,14 @@ void ImDrawList::AddText(ImFont font, float font_size, const ImVec2& pos, ImU32
ImBitmapFont::ImBitmapFont() ImBitmapFont::ImBitmapFont()
{ {
Data = NULL; Data = NULL;
DataSize = 0;
DataOwned = false; DataOwned = false;
Info = NULL; Info = NULL;
Common = NULL; Common = NULL;
Glyphs = NULL; Glyphs = NULL;
GlyphsCount = 0; GlyphsCount = 0;
Kerning = NULL;
KerningCount = 0;
TabCount = 4; TabCount = 4;
} }