diff options
author | yexo <yexo@openttd.org> | 2010-01-27 13:06:58 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-27 13:06:58 +0000 |
commit | ea7c90d471bbd6df746f349eb98f04c8ca3b5a09 (patch) | |
tree | ea0f6b4d47c3b931ff57737547a69e0c43feace8 /src/ai | |
parent | 849e676410472daf17a1996a57bccacab91594dc (diff) | |
download | openttd-ea7c90d471bbd6df746f349eb98f04c8ca3b5a09.tar.xz |
(svn r18925) -Fix (r18924): a waypoint can have a buoy but no rail waypoint tile
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_order.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp index 0c0a3b0e5..3e7ff11af 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -213,7 +213,8 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or if (wp->TileBelongsToRailStation(t)) return t; } } - return INVALID_TILE; + /* If the waypoint has no rail waypoint tiles, it must have a buoy */ + return wp->xy; } default: return INVALID_TILE; } |