(svn r8795) -Fix
authortron
Sun, 18 Feb 2007 08:50:27 +0000
changeset 6065 e03b7359e44a
parent 6064 7d66800424e5
child 6066 c57c6ea89b57
(svn r8795) -Fix

Remove the explicit check for buoys when inserting goto station orders.
This is already covered by the preceding OWNER_NONE test.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Sun Feb 18 08:37:39 2007 +0000
+++ b/src/order_cmd.cpp	Sun Feb 18 08:50:27 2007 +0000
@@ -198,7 +198,7 @@
 			if (!IsValidStationID(new_order.dest)) return CMD_ERROR;
 			st = GetStation(new_order.dest);
 
-			if (st->owner != OWNER_NONE && !st->IsBuoy() && !CheckOwnership(st->owner)) {
+			if (st->owner != OWNER_NONE && !CheckOwnership(st->owner)) {
 				return CMD_ERROR;
 			}