summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index e919ef6f6..562d358be 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -441,6 +441,7 @@ public:
if (id_v >= this->vehicles.Length()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
+ if (VehicleClicked(v)) break;
this->vehicle_sel = v->index;
@@ -531,7 +532,7 @@ public:
if (id_v >= this->vehicles.Length()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
- if (vindex == v->index) {
+ if (!VehicleClicked(v) && vindex == v->index) {
ShowVehicleViewWindow(v);
}
break;