summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-12 09:47:48 +0000
committerfrosch <frosch@openttd.org>2010-08-12 09:47:48 +0000
commitc16dead108c4560b0d14e0702008b8509e7cfd04 (patch)
treeca61107cf5321eb464aeeb89a17a38c6040d3ef9
parent9e538acc038a2697f00c313763218f1cd3fd6652 (diff)
downloadopenttd-c16dead108c4560b0d14e0702008b8509e7cfd04.tar.xz
(svn r20462) -Fix (r20452): Initialise scrollbar_index with -1 to indicate 'no scrollbar associated'.
-rw-r--r--src/widget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index f89ec1213..53d8a77d8 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -782,6 +782,7 @@ NWidgetCore::NWidgetCore(WidgetType tp, Colours colour, uint fill_x, uint fill_y
this->index = -1;
this->widget_data = widget_data;
this->tool_tip = tool_tip;
+ this->scrollbar_index = -1;
}
/**