summaryrefslogtreecommitdiff
path: root/src/autoreplace_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-02 02:45:09 +0000
committerbelugas <belugas@openttd.org>2008-02-02 02:45:09 +0000
commit33e63a3adc5383b704631f5aa0aca9aaf3245b21 (patch)
tree97531e94001ab02ac6a3777261f49f77429da54c /src/autoreplace_cmd.cpp
parent09ce7f76e963a5a368eb98dcc5f28dfe476eafea (diff)
downloadopenttd-33e63a3adc5383b704631f5aa0aca9aaf3245b21.tar.xz
(svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz).
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 b451be8de..57083e1ab 100644
--- a/src/autoreplace_cmd.cpp
+++ b/src/autoreplace_cmd.cpp
@@ -215,7 +215,7 @@ static CommandCost ReplaceVehicle(Vehicle **w, byte flags, Money total_cost)
DoCommand(0, (front->index << 16) | new_v->index, 1, DC_EXEC, CMD_MOVE_RAIL_VEHICLE);
} else {
// copy/clone the orders
- DoCommand(0, (old_v->index << 16) | new_v->index, IsOrderListShared(old_v) ? CO_SHARE : CO_COPY, DC_EXEC, CMD_CLONE_ORDER);
+ 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);
new_v->profit_this_year = old_v->profit_this_year;