Fix: Assertion in sprite aligner window (#11371)

When clicking sprite number after re-opening window having previously used sprite picker tool
pull/615/head
Jonathan G Rennison 8 months ago committed by GitHub
parent ab805c4e9e
commit a1c6923c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save