diff options
author | frosch <frosch@openttd.org> | 2010-08-12 09:47:48 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-12 09:47:48 +0000 |
commit | c16dead108c4560b0d14e0702008b8509e7cfd04 (patch) | |
tree | ca61107cf5321eb464aeeb89a17a38c6040d3ef9 | |
parent | 9e538acc038a2697f00c313763218f1cd3fd6652 (diff) | |
download | openttd-c16dead108c4560b0d14e0702008b8509e7cfd04.tar.xz |
(svn r20462) -Fix (r20452): Initialise scrollbar_index with -1 to indicate 'no scrollbar associated'.
-rw-r--r-- | src/widget.cpp | 1 |
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; } /** |