mirror of https://github.com/OpenTTD/OpenTTD
Fix: Assertion in sprite aligner window (#11371)
When clicking sprite number after re-opening window having previously used sprite picker toolpull/11379/head
parent
ab805c4e9e
commit
a1c6923c63
|
@ -826,6 +826,7 @@ struct SpriteAlignerWindow : Window {
|
|||
{
|
||||
this->CreateNestedTree();
|
||||
this->vscroll = this->GetScrollbar(WID_SA_SCROLLBAR);
|
||||
this->vscroll->SetCount(_newgrf_debug_sprite_picker.sprites.size());
|
||||
this->FinishInitNested(wno);
|
||||
|
||||
this->SetWidgetLoweredState(WID_SA_CENTRE, SpriteAlignerWindow::centre);
|
||||
|
|
Loading…
Reference in New Issue