From d7afec34acffcc3cd3a04c1645d4114ced49e028 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 8 Apr 2008 22:41:14 +0000 Subject: (svn r12633) -Fix: could not make a (go-to) depot order. --- src/order_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_base.h') diff --git a/src/order_base.h b/src/order_base.h index 237b468d6..cb770eaa7 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -169,7 +169,7 @@ public: /** What caused us going to the depot? */ inline OrderDepotTypeFlags GetDepotOrderType() const { return (OrderDepotTypeFlags)this->flags; } /** What are we going to do when in the depot. */ - inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)this->flags; } + inline OrderDepotActionFlags GetDepotActionType() const { return (OrderDepotActionFlags)(this->flags & ODATFB_HALT); } /** Set how the consist must be loaded. */ inline void SetLoadType(OrderLoadFlags load_type) { SB(this->flags, 2, 1, !!load_type); } -- cgit v1.2.3-54-g00ecf