summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-14 23:10:27 +0000
committerrubidium <rubidium@openttd.org>2007-07-14 23:10:27 +0000
commit7aec26887cfc0f40c54a147d566b737cdbbf9451 (patch)
tree8e0bc57b2b06b68cd87f0cd9d2168ec3eb7ed227 /src/players.cpp
parent197245eefe096da8008ce8d4772ab51fd2fb5cf4 (diff)
downloadopenttd-7aec26887cfc0f40c54a147d566b737cdbbf9451.tar.xz
(svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by Matthias Wolf.
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 */