summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_road.cpp
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-06-24 13:18:54 +0000
committerKUDr <KUDr@openttd.org>2007-06-24 13:18:54 +0000
commitdb6710fb1642fab36dd2814aaad91b4b78fb012c (patch)
tree42cac90210571c53b0b0022f4126869724020aae /src/yapf/yapf_road.cpp
parent331c9eec7b378da189dca8ab78f489603a4060af (diff)
downloadopenttd-db6710fb1642fab36dd2814aaad91b4b78fb012c.tar.xz
(svn r10301) -Fix [FS#901, YAPF]: another assert violation in some special cases (immeR)
Diffstat (limited to 'src/yapf/yapf_road.cpp')
-rw-r--r--src/yapf/yapf_road.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp
index 125e7c822..d048bbbe9 100644
--- a/src/yapf/yapf_road.cpp
+++ b/src/yapf/yapf_road.cpp
@@ -72,7 +72,7 @@ public:
/** 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