Fix drag and drop in tracerestrict slot window

This commit is contained in:
Jonathan G Rennison
2021-02-02 23:28:22 +00:00
parent a9b82b817b
commit be216952cb

View File

@@ -3456,7 +3456,7 @@ public:
uint id_v = this->vscroll->GetScrolledRowFromWidget(pt.y, this, WID_TRSL_LIST_VEHICLE);
if (id_v >= this->vehgroups.size()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
const Vehicle *v = this->vehgroups[id_v].GetSingleVehicle();;
if (VehicleClicked(v)) break;
this->vehicle_sel = v->index;