From c39b1b4e5178e7f2798de84b0bc5009aa2e9e95f Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Fri, 1 Jan 2016 18:38:43 -0600 Subject: gui: Initialize button render position Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176 --- gui/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/button.cpp') diff --git a/gui/button.cpp b/gui/button.cpp index 45614e461..a9b02a305 100644 --- a/gui/button.cpp +++ b/gui/button.cpp @@ -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); -- cgit v1.2.3