From b8c3bee8b04113a789c873d488fce60ead513eac Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 5 Feb 2021 02:48:28 +0000 Subject: [PATCH] Fix clicking trains in slots window --- src/tracerestrict_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tracerestrict_gui.cpp b/src/tracerestrict_gui.cpp index 0f8b3c03f1..83c8f0e1d1 100644 --- a/src/tracerestrict_gui.cpp +++ b/src/tracerestrict_gui.cpp @@ -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->vehgroups[id_v].GetSingleVehicle();; + const Vehicle *v = this->vehgroups[id_v].GetSingleVehicle(); if (VehicleClicked(v)) break; this->vehicle_sel = v->index; @@ -3530,7 +3530,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) && vindex == v->index) { ShowVehicleViewWindow(v); }