mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-23 21:50:23 +01:00
Fix e49150f9ca
: House picker crashes if selection is not available. (#14030)
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().
This commit is contained in:
parent
d248f45d67
commit
2b92d76e9d
@ -1743,7 +1743,7 @@ struct BuildHouseWindow : public PickerWindow {
|
|||||||
|
|
||||||
void OnInit() override
|
void OnInit() override
|
||||||
{
|
{
|
||||||
this->InvalidateData(PickerInvalidation::Position);
|
this->InvalidateData(PICKER_INVALIDATION_ALL);
|
||||||
this->PickerWindow::OnInit();
|
this->PickerWindow::OnInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user