From 76afd1d1a9bec89d0bdc60c644f5462e1e8b0f75 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 13 Nov 2002 15:20:08 +0000 Subject: more initialisation fixes svn-id: r5535 --- gui/ScrollBarWidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/ScrollBarWidget.cpp b/gui/ScrollBarWidget.cpp index 52dd22ef60..9066c67291 100644 --- a/gui/ScrollBarWidget.cpp +++ b/gui/ScrollBarWidget.cpp @@ -67,8 +67,15 @@ ScrollBarWidget::ScrollBarWidget(Dialog *boss, int x, int y, int w, int h) _type = kScrollBarWidget; _part = kNoPart; + _sliderHeight = 0; + _sliderPos = 0; + _draggingPart = kNoPart; + _sliderDeltaMouseDownPos = 0; + _numEntries = 0; + _entriesPerPage = 0; + _currentPos = 0; } void ScrollBarWidget::handleMouseDown(int x, int y, int button, int clickCount) -- cgit v1.2.3