diff --git a/src/order.h b/src/order.h --- a/src/order.h +++ b/src/order.h @@ -107,7 +107,11 @@ struct Order : PoolItemtype = OT_NOTHING; } - bool IsValid() const; + /** + * Check if a Order really exists. + */ + inline bool IsValid() const { return this->type != OT_NOTHING; } + void Free(); void FreeChain(); }; @@ -140,14 +144,6 @@ static inline VehicleOrderID GetNumOrder return GetOrderPoolSize(); } -/** - * Check if a Order really exists. - */ -inline bool Order::IsValid() const -{ - return this->type != OT_NOTHING; -} - inline void Order::Free() { this->type = OT_NOTHING;