summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-17 00:40:06 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commite08b3abe7ff65c193781a74c170f45b2f1dcf0a5 (patch)
tree2b9c5d0a1012e63498c39cc557e826edff47696f /src/vehicle.cpp
parent46bd2f1cedde365218a3f1a52116fe169587af89 (diff)
downloadopenttd-e08b3abe7ff65c193781a74c170f45b2f1dcf0a5.tar.xz
Codechange: Un-bitstuff group and autoreplace commands.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 9a66053d3..d5d39b6e8 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1059,7 +1059,7 @@ void CallVehicleTicks()
const Company *c = Company::Get(_current_company);
SubtractMoneyFromCompany(CommandCost(EXPENSES_NEW_VEHICLES, (Money)c->settings.engine_renew_money));
- CommandCost res = Command<CMD_AUTOREPLACE_VEHICLE>::Do(DC_EXEC, 0, v->index, 0, {});
+ CommandCost res = Command<CMD_AUTOREPLACE_VEHICLE>::Do(DC_EXEC, v->index);
SubtractMoneyFromCompany(CommandCost(EXPENSES_NEW_VEHICLES, -(Money)c->settings.engine_renew_money));
if (!IsLocalCompany()) continue;