summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-17 20:51:24 +0000
committerrubidium <rubidium@openttd.org>2009-07-17 20:51:24 +0000
commitd8f16ea1994ecebdb153c58350b3a044a6d43e57 (patch)
tree1af8506b6b3e5656b1ccbd30d75f04571c191306 /src/order_gui.cpp
parentc9cab7ba1967a42b90b44bca865db33c66a20c72 (diff)
downloadopenttd-d8f16ea1994ecebdb153c58350b3a044a6d43e57.tar.xz
(svn r16863) -Codechange: GetWaypointByTile -> Waypoint::GetByTile, like used for e.g. stations
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 96bb000a8..4548fbbc1 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -352,7 +352,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
if (IsRailWaypointTile(tile) &&
v->type == VEH_TRAIN &&
IsTileOwner(tile, _local_company)) {
- order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
+ order.MakeGoToWaypoint(Waypoint::GetByTile(tile)->index);
if (_settings_client.gui.new_nonstop != _ctrl_pressed) order.SetNonStopType(ONSF_NO_STOP_AT_ANY_STATION);
return order;
}