diff options
author | belugas <belugas@openttd.org> | 2008-08-23 02:15:46 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-08-23 02:15:46 +0000 |
commit | 7dc212edeba11703d3b8a5f4105dbb0102f122ab (patch) | |
tree | 3c9c32817a645ea313b3ef2cc9da69a40f7820ea /src/vehicle_gui.cpp | |
parent | f625ecbeba53c4d25cd2ad2755924448522af8e9 (diff) | |
download | openttd-7dc212edeba11703d3b8a5f4105dbb0102f122ab.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.cpp | 2 |
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) |