diff options
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r-- | src/group_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index 7795d917d..29dc17edd 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -658,6 +658,8 @@ CommandCost CmdSetGroupLivery(TileIndex tile, DoCommandFlag flags, uint32 p1, ui if (g == NULL || g->owner != _current_company) return CMD_ERROR; + if (colour >= COLOUR_END && colour != INVALID_COLOUR) return CMD_ERROR; + if (flags & DC_EXEC) { if (primary) { SB(g->livery.in_use, 0, 1, colour != INVALID_COLOUR); |