src/group_cmd.cpp
changeset 7147 d1a898108501
parent 7139 4ae3ab180d05
child 7163 09e65bfbc08b
--- a/src/group_cmd.cpp	Sat May 19 20:15:50 2007 +0000
+++ b/src/group_cmd.cpp	Sat May 19 21:47:14 2007 +0000
@@ -181,7 +181,7 @@
 {
 	GroupID new_g = p1;
 
-	if (!IsValidVehicleID(p2) || !IsValidGroupID(new_g)) return CMD_ERROR;
+	if (!IsValidVehicleID(p2) || (!IsValidGroupID(new_g) && !IsDefaultGroupID(new_g))) return CMD_ERROR;
 
 	Vehicle *v = GetVehicle(p2);
 	if (v->owner != _current_player || (v->type == VEH_TRAIN && !IsFrontEngine(v))) return CMD_ERROR;