summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/button.cpp2
1 files changed, 1 insertions, 1 deletions
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);