Fix: Fix "create group from list" command

Create group from list command does not work properly since create group command has been changed in upstream.
This commit is contained in:
stormcone
2019-03-17 21:29:17 +01:00
committed by GitHub
parent 63203c2395
commit 8eadf32ced

View File

@@ -507,7 +507,7 @@ CommandCost CmdCreateGroupFromList(TileIndex tile, DoCommandFlag flags, uint32 p
if (!IsCompanyBuildableVehicleType(vli.vtype)) return CMD_ERROR;
if (!GenerateVehicleSortList(&list, vli)) return CMD_ERROR;
CommandCost ret = DoCommand(tile, vli.vtype, 0, flags, CMD_CREATE_GROUP);
CommandCost ret = DoCommand(tile, vli.vtype, INVALID_GROUP, flags, CMD_CREATE_GROUP);
if (ret.Failed()) return ret;
if (!StrEmpty(text)) {