diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 8226b795c1..1042859220 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -596,7 +596,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;