summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-09-03 08:25:27 +0000
committertron <tron@openttd.org>2006-09-03 08:25:27 +0000
commitd5e5a78cf414eb143741f6fc15d8245f5197b3c9 (patch)
tree79ebec494a87cd0b8e16e577740868f5bf90a7d2 /yapf
parent5a86b502c2f553096f88d7f84241e0f3e581fcb2 (diff)
downloadopenttd-d5e5a78cf414eb143741f6fc15d8245f5197b3c9.tar.xz
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
Diffstat (limited to 'yapf')
-rw-r--r--yapf/yapf_destrail.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yapf/yapf_destrail.hpp b/yapf/yapf_destrail.hpp
index 9d58d7013..f22166840 100644
--- a/yapf/yapf_destrail.hpp
+++ b/yapf/yapf_destrail.hpp
@@ -85,8 +85,8 @@ public:
void SetDestination(Vehicle* v)
{
if (v->current_order.type == OT_GOTO_STATION) {
- m_destTile = CalcStationCenterTile(v->current_order.dest.station);
- m_dest_station_id = v->current_order.dest.station;
+ m_destTile = CalcStationCenterTile(v->current_order.dest);
+ m_dest_station_id = v->current_order.dest;
m_destTrackdirs = INVALID_TRACKDIR_BIT;
} else {
m_destTile = v->dest_tile;