Change window close/deallocation to match upstream
This commit is contained in:
@@ -903,7 +903,7 @@ void LinkGraphLegendWindow::OnClick(Point pt, int widget, int click_count)
|
||||
void LinkGraphLegendWindow::OnInvalidateData(int data, bool gui_scope)
|
||||
{
|
||||
if (this->num_cargo != _sorted_cargo_specs.size()) {
|
||||
delete this;
|
||||
this->Close();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user