From cdb896b79065e0c1caba92a4377894e538568c9f Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 30 Apr 2005 10:49:47 +0000 Subject: [PATCH] (svn r2237) - Fix (regression): [ 1192284 ] Bug: Ship refuses to add buoy to its orders (init100) --- order_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/order_cmd.c b/order_cmd.c index a5537c9278..63e017fea6 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; }