gui: Initialize button render position

Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176
This commit is contained in:
Matt Mower
2016-01-01 18:38:43 -06:00
parent 91584b2603
commit c39b1b4e51

View File

@@ -85,7 +85,7 @@ GUIButton::GUIButton(xml_node<>* node)
mHighlightColor = LoadAttrColor(FindNode(node, "highlight"), "color", &hasHighlightColor);
int x, y, w, h;
int x = 0, y = 0, w = 0, h = 0;
TextPlacement = TOP_LEFT;
if (mButtonImg) {
mButtonImg->GetRenderPos(x, y, w, h);