mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
TBTR: Fix clone template from train creating template with wrong owner
This commit is contained in:
parent
8bf0e030b2
commit
4546c37ee2
@ -1385,6 +1385,7 @@ CommandCost CmdTemplateVehicleFromTrain(TileIndex tile, DoCommandFlag flags, uin
|
||||
for (; clicked != nullptr; clicked = clicked->Next()) {
|
||||
tmp = new TemplateVehicle(clicked->engine_type);
|
||||
SetupTemplateVehicleFromVirtual(tmp, prev, clicked);
|
||||
tmp->owner = _current_company;
|
||||
prev = tmp;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user