From 4017439c37e661dbd694771106a8b29e9b860137 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Jul 2009 10:39:58 +0000 Subject: (svn r16948) -Codechange: some code reductions and usage of wrapper functions --- src/ai/api/ai_order.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_order.cpp') diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp index aa91a539a..fcf1658fe 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -198,7 +198,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or } return INVALID_TILE; } - case OT_GOTO_WAYPOINT: return v->type == VEH_TRAIN ? ::Waypoint::Get(order->GetDestination())->xy : ::Station::Get(order->GetDestination())->xy; + case OT_GOTO_WAYPOINT: return ::Waypoint::Get(order->GetDestination())->xy; default: return INVALID_TILE; } } -- cgit v1.2.3-54-g00ecf