TBTR: Fix template replacement refits having 0 cost

This commit is contained in:
Jonathan G Rennison
2020-01-16 20:33:45 +00:00
parent 424813446f
commit 06a2bedfe5
3 changed files with 7 additions and 4 deletions

View File

@@ -5659,7 +5659,7 @@ CommandCost CmdTemplateReplaceVehicle(TileIndex tile, DoCommandFlag flags, uint3
// refit, only if the template option is set so
if (use_refit && (need_refit || need_replacement)) {
CmdRefitTrainFromTemplate(new_chain, tv, flags);
buy.AddCost(CmdRefitTrainFromTemplate(new_chain, tv, flags));
}
if (new_chain && remainder_chain) {