mirror of https://github.com/OpenTTD/OpenTTD
(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window
parent
893e405af0
commit
2330851d1d
|
@ -1061,7 +1061,7 @@ struct BuildVehicleWindow : Window {
|
|||
size_t num_items = this->eng_list.Length();
|
||||
this->sel_engine = (i < num_items) ? this->eng_list[i] : INVALID_ENGINE;
|
||||
this->SetDirty();
|
||||
if (click_count > 1) this->OnClick(pt, BUILD_VEHICLE_WIDGET_BUILD, 1);
|
||||
if (click_count > 1 && !this->listview_mode) this->OnClick(pt, BUILD_VEHICLE_WIDGET_BUILD, 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue