summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-12 12:19:53 +0000
committerrubidium <rubidium@openttd.org>2008-04-12 12:19:53 +0000
commit85354456b9c70944c5629a9dc53aa03a7a506532 (patch)
treeeabe3cd53769c9f05188b9101baaca70195500c1 /src/order_cmd.cpp
parent0e40b1013cf8f5c4bea127b4cdeb215073556705 (diff)
downloadopenttd-85354456b9c70944c5629a9dc53aa03a7a506532.tar.xz
(svn r12668) -Fix (12667): swapping of variables went wrong.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 9a0826871..70ad28861 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -96,8 +96,8 @@ void Order::MakeDummy()
void Order::MakeConditional(VehicleOrderID order)
{
this->type = OT_CONDITIONAL;
- this->flags = 0;
- this->dest = order;
+ this->flags = order;
+ this->dest = 0;
}
void Order::SetRefit(CargoID cargo, byte subtype)