summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-17 20:54:18 +0000
committerrubidium <rubidium@openttd.org>2008-05-17 20:54:18 +0000
commit9717e1ef073f351a3a3e8769b337395d84448004 (patch)
treea6539103a8675f69e55e00b8315b178a88fcb37e /src/autoreplace_cmd.cpp
parentdbdfccc2dadc3d8338614eaff2ca2b105eb15417 (diff)
downloadopenttd-9717e1ef073f351a3a3e8769b337395d84448004.tar.xz
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
Diffstat (limited to 'src/autoreplace_cmd.cpp')
-rw-r--r--src/autoreplace_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp
index 8b7688107..59cb0ac75 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -216,7 +216,7 @@ static CommandCost ReplaceVehicle(Vehicle **w, byte flags, Money total_cost, con
// copy/clone the orders
DoCommand(0, (old_v->index << 16) | new_v->index, old_v->IsOrderListShared() ? CO_SHARE : CO_COPY, DC_EXEC, CMD_CLONE_ORDER);
new_v->cur_order_index = old_v->cur_order_index;
- ChangeVehicleViewWindow(old_v, new_v);
+ ChangeVehicleViewWindow(old_v->index, new_v->index);
new_v->profit_this_year = old_v->profit_this_year;
new_v->profit_last_year = old_v->profit_last_year;
new_v->service_interval = old_v->service_interval;