summaryrefslogtreecommitdiff
path: root/yapf/yapf_costrail.hpp
diff options
context:
space:
mode:
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;