diff options
author | rubidium <rubidium@openttd.org> | 2007-07-14 23:10:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-14 23:10:27 +0000 |
commit | 7aec26887cfc0f40c54a147d566b737cdbbf9451 (patch) | |
tree | 8e0bc57b2b06b68cd87f0cd9d2168ec3eb7ed227 /src/players.cpp | |
parent | 197245eefe096da8008ce8d4772ab51fd2fb5cf4 (diff) | |
download | openttd-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.cpp | 2 |
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 */ |