Changeset - r23267:3742a07348db
[Not reviewed]
master
0 1 0
Peter Nelson - 6 years ago 2019-02-03 09:16:48
peter1138@openttd.org
Fix #7108: Group livery command did not check its parameters properly.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -658,6 +658,8 @@ CommandCost CmdSetGroupLivery(TileIndex 
 

	
 
	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);
0 comments (0 inline, 0 general)