summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/group_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index 9915546eb..a9451ee8f 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -537,7 +537,7 @@ CommandCost CmdAddVehicleGroup(TileIndex tile, DoCommandFlag flags, uint32 p1, u
if (new_g == NEW_GROUP) {
/* Create new group. */
- CommandCost ret = CmdCreateGroup(0, flags, v->type, 0, nullptr);
+ CommandCost ret = CmdCreateGroup(0, flags, v->type, INVALID_GROUP, nullptr);
if (ret.Failed()) return ret;
new_g = _new_group_id;