From 3efece128469f5bcee86e350f910c9efe40ff2f6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 2 Jun 2008 06:44:06 +0000 Subject: (svn r13357) -Codechange: add constness to YAPF. --- src/yapf/yapf_costrail.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/yapf/yapf_costrail.hpp') diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp index eaba2fe80..abd421068 100644 --- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -191,7 +191,7 @@ public: FORCEINLINE int PlatformLengthPenalty(int platform_length) { int cost = 0; - const Vehicle* v = Yapf().GetVehicle(); + const Vehicle *v = Yapf().GetVehicle(); assert(v != NULL); assert(v->type == VEH_TRAIN); assert(v->u.rail.cached_total_length != 0); @@ -261,7 +261,7 @@ public: int segment_entry_cost = 0; int segment_cost = 0; - const 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 TILE cur(n.m_key.m_tile, n.m_key.m_td); -- cgit v1.2.3-54-g00ecf