diff options
author | KUDr <kudr@openttd.org> | 2006-05-30 10:53:27 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-05-30 10:53:27 +0000 |
commit | d72ebf6ca3299cb525e2ba48b34e64be262a5d7c (patch) | |
tree | 79602ee8d10bb3df5130a5bcc264510562f3bf6e /yapf/yapf_costrail.hpp | |
parent | ed48b38619492a4018ac014d203718db689f69b2 (diff) | |
download | openttd-d72ebf6ca3299cb525e2ba48b34e64be262a5d7c.tar.xz |
(svn r5033) -CodeChange: [YAPF] RoadFindPathToStop() can now use YAPF for multistop handling.
Diffstat (limited to 'yapf/yapf_costrail.hpp')
-rw-r--r-- | yapf/yapf_costrail.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/yapf_costrail.hpp b/yapf/yapf_costrail.hpp index d8ebe3f5e..f02a42208 100644 --- a/yapf/yapf_costrail.hpp +++ b/yapf/yapf_costrail.hpp @@ -152,7 +152,7 @@ public: int first_tile_cost = 0; int segment_cost = 0; int extra_cost = 0; - Vehicle* v = Yapf().GetVehicle(); + const Vehicle* v = Yapf().GetVehicle(); // start at n.m_key.m_tile / n.m_key.m_td and walk to the end of segment TileIndex prev_tile = (n.m_parent != NULL) ? n.m_parent->GetLastTile() : INVALID_TILE; |