GUI: Initialized more variables

This commit is contained in:
Eugene Sandulenko 2021-04-30 15:41:37 +02:00
parent ad50a1471a
commit eda31b9498
No known key found for this signature in database
GPG key ID: 014D387312D34F08
2 changed files with 10 additions and 0 deletions

View file

@ -73,6 +73,7 @@ ListWidget::ListWidget(Dialog *boss, int x, int y, int w, int h, const U32String
: EditableWidget(boss, x, y, w, h, tooltip), _cmd(cmd) {
_entriesPerPage = 0;
_scrollBarWidth = 0;
_scrollBar = new ScrollBarWidget(this, _w - _scrollBarWidth, 0, _scrollBarWidth, _h);
_scrollBar->setTarget(this);