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:
@@ -507,7 +507,7 @@ CommandCost CmdCreateGroupFromList(TileIndex tile, DoCommandFlag flags, uint32 p
|
|||||||
if (!IsCompanyBuildableVehicleType(vli.vtype)) return CMD_ERROR;
|
if (!IsCompanyBuildableVehicleType(vli.vtype)) return CMD_ERROR;
|
||||||
if (!GenerateVehicleSortList(&list, vli)) 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 (ret.Failed()) return ret;
|
||||||
|
|
||||||
if (!StrEmpty(text)) {
|
if (!StrEmpty(text)) {
|
||||||
|
Reference in New Issue
Block a user