summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/players.cpp')
-rw-r--r--src/players.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 1d529872a..68dc68b8e 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -711,7 +711,7 @@ CommandCost CmdSetAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
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 */