summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-30 10:49:47 +0000
committerDarkvater <darkvater@openttd.org>2005-04-30 10:49:47 +0000
commitcdb896b79065e0c1caba92a4377894e538568c9f (patch)
tree945c53611d84c8c1bc7abc6a532daf3645b69372 /order_cmd.c
parent13f07582b09885a33438b5f1d0e81a9f16cb51cb (diff)
downloadopenttd-cdb896b79065e0c1caba92a4377894e538568c9f.tar.xz
(svn r2237) - Fix (regression): [ 1192284 ] Bug: Ship refuses to add buoy to its orders (init100)
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 a5537c927..63e017fea 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 && !CheckOwnership(st->owner))) {
+ (st->airport_type != AT_OILRIG && !(st->had_vehicle_of_type & HVOT_BUOY) && !CheckOwnership(st->owner))) {
return CMD_ERROR;
}