summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-15 13:17:04 +0000
committerrubidium <rubidium@openttd.org>2010-08-15 13:17:04 +0000
commit15514baf8b19c87c559361798c8d7705f2b3edf0 (patch)
treee503ca29d784d581a3e9b15ae347044d0f957c1c
parente1d35cba6ddf6bb1589dca62d5d0adf99f0995b0 (diff)
downloadopenttd-15514baf8b19c87c559361798c8d7705f2b3edf0.tar.xz
(svn r20498) -Fix [FS#4030]: ignore the non-stop state when comparing one order type to another order type
-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 2003ce255..98b4b316e 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -115,7 +115,7 @@ bool Order::Equals(const Order &other) const
* destination because those get clear/filled in during the order
* evaluation. If we do not do this the order will continuously be seen as
* a different order and it will try to find a "nearest depot" every tick. */
- if ((this->type == OT_GOTO_DEPOT && this->type == other.type) &&
+ if ((this->IsType(OT_GOTO_DEPOT) && this->type == other.type) &&
((this->GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0 ||
(other.GetDepotActionType() & ODATFB_NEAREST_DEPOT) != 0)) {
return