mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Merge branch 'pr-78' into jgrpp
This commit is contained in:
commit
99f3ebe1fd
@ -508,7 +508,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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user