summaryrefslogtreecommitdiff
path: root/yapf/yapf_costrail.hpp
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2006-05-30 10:53:27 +0000
committerKUDr <KUDr@openttd.org>2006-05-30 10:53:27 +0000
commitaf1b942906b389a4f6bfa5dabcac26ea56c5e2f1 (patch)
tree79602ee8d10bb3df5130a5bcc264510562f3bf6e /yapf/yapf_costrail.hpp
parentaf9f81b6a8c1b23031341237f5a5cfdd3930f81e (diff)
downloadopenttd-af1b942906b389a4f6bfa5dabcac26ea56c5e2f1.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.hpp2
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;