src/players.cpp
changeset 7258 8ea218277d00
parent 7096 9b231813f232
child 7734 627817106768
--- a/src/players.cpp	Sat Jul 14 22:37:40 2007 +0000
+++ b/src/players.cpp	Sat Jul 14 23:10:27 2007 +0000
@@ -711,7 +711,7 @@
 			GroupID id_g = GB(p1, 16, 16);
 			CommandCost cost;
 
-			if (!IsValidGroupID(id_g) && !IsDefaultGroupID(id_g)) return CMD_ERROR;
+			if (!IsValidGroupID(id_g) && !IsAllGroupID(id_g) && !IsDefaultGroupID(id_g)) return CMD_ERROR;
 			if (new_engine_type != INVALID_ENGINE) {
 				/* First we make sure that it's a valid type the user requested
 				 * check that it's an engine that is in the engine array */