summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-23 02:15:46 +0000
committerbelugas <belugas@openttd.org>2008-08-23 02:15:46 +0000
commit23b1f53ff65286b47284d7a75d1b6e9288c3eb39 (patch)
tree3c9c32817a645ea313b3ef2cc9da69a40f7820ea /src/vehicle_gui.cpp
parentb6ae11f3aecb92104bcd4cbefd37a3ed32eeb8af (diff)
downloadopenttd-23b1f53ff65286b47284d7a75d1b6e9288c3eb39.tar.xz
(svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 55f254532..821b15413 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1182,7 +1182,7 @@ void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type)
void ShowVehicleListWindow(const Waypoint *wp)
{
if (wp == NULL) return;
- ShowVehicleListWindowLocal(GetTileOwner(wp->xy), VLW_WAYPOINT_LIST, VEH_TRAIN, wp->index);
+ ShowVehicleListWindowLocal(wp->owner, VLW_WAYPOINT_LIST, VEH_TRAIN, wp->index);
}
void ShowVehicleListWindow(const Vehicle *v)