TBTR: Fix clone template from train creating template with wrong owner

This commit is contained in:
Jonathan G Rennison 2024-08-31 11:26:26 +01:00
parent 8bf0e030b2
commit 4546c37ee2

View File

@ -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;
}