Change #5977: Use specific error message when attempting to create a circular group hierarchy (3298)

This commit is contained in:
Charles Pigott
2019-03-26 00:17:33 +00:00
committed by PeterN
parent ed9005690a
commit a393c94695
2 changed files with 2 additions and 1 deletions

View File

@@ -449,7 +449,7 @@ CommandCost CmdAlterGroup(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
/* Ensure request parent isn't child of group.
* This is the only place that infinite loops are prevented. */
if (GroupIsInGroup(pg->index, g->index)) return CMD_ERROR;
if (GroupIsInGroup(pg->index, g->index)) return_cmd_error(STR_ERROR_GROUP_CAN_T_SET_PARENT_RECURSION);
}
if (flags & DC_EXEC) {