summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 63e017fea..5bdabc899 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -166,7 +166,7 @@ int32 CmdInsertOrder(int x, int y, uint32 flags, uint32 veh_sel, uint32 packed_o
st = GetStation(new_order.station);
if (!IsValidStation(st) ||
- (st->airport_type != AT_OILRIG && !(st->had_vehicle_of_type & HVOT_BUOY) && !CheckOwnership(st->owner))) {
+ (st->airport_type != AT_OILRIG && !(IsBuoy(st)) && !CheckOwnership(st->owner))) {
return CMD_ERROR;
}