src/yapf/yapf_road.cpp
changeset 7037 64249224bb74
parent 6683 b88ae30866ce
child 7370 41adc721b1fa
--- a/src/yapf/yapf_road.cpp	Sun Jun 24 12:27:11 2007 +0000
+++ b/src/yapf/yapf_road.cpp	Sun Jun 24 13:18:54 2007 +0000
@@ -72,7 +72,7 @@
 	/** Called by YAPF to calculate the cost from the origin to the given node.
 	 *  Calculates only the cost of given node, adds it to the parent node cost
 	 *  and stores the result into Node::m_cost member */
-	FORCEINLINE bool PfCalcCost(Node& n, const TrackFollower &tf)
+	FORCEINLINE bool PfCalcCost(Node& n, const TrackFollower *tf)
 	{
 		int segment_cost = 0;
 		// start at n.m_key.m_tile / n.m_key.m_td and walk to the end of segment