forked from mirror/OpenTTD
(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user