changeset 15788:0f906a2224dc draft

(svn r20462) -Fix (r20452): Initialise scrollbar_index with -1 to indicate 'no scrollbar associated'.
author frosch <frosch@openttd.org>
date Thu, 12 Aug 2010 09:47:48 +0000
parents 6c4bec3b8401
children 9c5d4355aa5c
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -782,6 +782,7 @@
 	this->index = -1;
 	this->widget_data = widget_data;
 	this->tool_tip = tool_tip;
+	this->scrollbar_index = -1;
 }
 
 /**