summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-07 15:04:00 +0000
committerrubidium <rubidium@openttd.org>2008-04-07 15:04:00 +0000
commitc6e8bf41a18d253d2fe04ea78e8791fae1f4367d (patch)
treef913c97740d910eb2b722c2cad6b91c6831a8268 /src/order_cmd.cpp
parent7dc63836ea88662294cf4bde905319521ccdee7b (diff)
downloadopenttd-c6e8bf41a18d253d2fe04ea78e8791fae1f4367d.tar.xz
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 3f9dc7359..866238734 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -767,7 +767,7 @@ CommandCost CmdModifyOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (order->IsType(OT_GOTO_DEPOT)) {
order->SetDepotOrderType(order->GetDepotOrderType() ^ OFB_SERVICE_IF_NEEDED);
} else {
- order->SetLoadType(order->GetUnloadType() ^ OFB_FULL_LOAD);
+ order->SetLoadType(order->GetLoadType() ^ OFB_FULL_LOAD);
order->SetUnloadType(order->GetUnloadType() & ~OFB_UNLOAD);
}
break;