diff options
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index ee42e15e8..1415b0d7a 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -2145,14 +2145,14 @@ void StopGlobalFollowVehicle(const Vehicle *v) /** * This is the Callback method after the construction attempt of a primary vehicle - * @param success indicates completion (or not) of the operation + * @param result indicates completion (or not) of the operation * @param tile unused * @param p1 unused * @param p2 unused */ -void CcBuildPrimaryVehicle(bool success, TileIndex tile, uint32 p1, uint32 p2) +void CcBuildPrimaryVehicle(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2) { - if (!success) return; + if (result.Failed()) return; const Vehicle *v = Vehicle::Get(_new_vehicle_id); if (v->tile == _backup_orders_tile) { |