1
0
Fork 0

Fix e49150f9ca: House picker crashes if selection is not available.

This occurs because the extra invalidation in OnInit() also happens on construction, and too early.

Solution is to validate all instead of just position when invalidating in OnInit().
pull/14030/head
Peter Nelson 2025-04-18 16:44:56 +01:00
parent 2c59838acb
commit afb120af1d
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -1743,7 +1743,7 @@ struct BuildHouseWindow : public PickerWindow {
void OnInit() override
{
this->InvalidateData(PickerInvalidation::Position);
this->InvalidateData(PICKER_INVALIDATION_ALL);
this->PickerWindow::OnInit();
}