1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Fix: Assertion in sprite aligner window (#11371)

When clicking sprite number after re-opening window having previously used sprite picker tool
This commit is contained in:
Jonathan G Rennison
2023-10-17 21:25:48 +01:00
committed by GitHub
parent ab805c4e9e
commit a1c6923c63

View File

@@ -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);