diff options
author | frosch <frosch@openttd.org> | 2009-07-20 19:58:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-07-20 19:58:33 +0000 |
commit | d5a4c893656f61950595c057c7643f4082228d47 (patch) | |
tree | ae65d69eb2c0ef06cd95925420d1e3fb1c11c382 /src/train_gui.cpp | |
parent | e3752f3ef82278a34fe5cce5515e240589465c77 (diff) | |
download | openttd-d5a4c893656f61950595c057c7643f4082228d47.tar.xz |
(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index c9f967711..22efbe6d4 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -35,7 +35,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) /* if we found a loco, */ if (found != NULL) { - found = GetLastVehicleInChain(found); + found = found->Last(); /* put the new wagon at the end of the loco. */ DoCommandP(0, _new_vehicle_id | (found->index << 16), 0, CMD_MOVE_RAIL_VEHICLE); InvalidateWindowClassesData(WC_TRAINS_LIST, 0); |