mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Picker GUI: Fix picker tool class changes not updating type list
This commit is contained in:
parent
248846614e
commit
f50144e4d8
@ -473,7 +473,10 @@ void PickerWindow::PickItem(int cls_id, int id)
|
||||
invalidation_flags |= PFI_TYPE;
|
||||
}
|
||||
|
||||
this->callbacks.SetSelectedClass(cls_id);
|
||||
if (this->callbacks.GetSelectedClass() != cls_id) {
|
||||
this->callbacks.SetSelectedClass(cls_id);
|
||||
invalidation_flags |= PFI_TYPE;
|
||||
}
|
||||
this->callbacks.SetSelectedType(id);
|
||||
this->InvalidateData(invalidation_flags);
|
||||
CloseWindowById(WC_SELECT_STATION, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user