diff options
author | KUDr <KUDr@openttd.org> | 2007-02-24 00:17:46 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-02-24 00:17:46 +0000 |
commit | efb3637d0f7fc423e2b4f31a67058455a5183da5 (patch) | |
tree | a567351d7e9a2e7575b410393280573e0ba04d98 /src/yapf/yapf_road.cpp | |
parent | 98a4fc13996ae24728e051350ee0338a356af954 (diff) | |
download | openttd-efb3637d0f7fc423e2b4f31a67058455a5183da5.tar.xz |
(svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche)
Diffstat (limited to 'src/yapf/yapf_road.cpp')
-rw-r--r-- | src/yapf/yapf_road.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_road.cpp b/src/yapf/yapf_road.cpp index 763d39af4..c22683c25 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) + 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 @@ -246,7 +246,7 @@ public: { TrackFollower F(Yapf().GetVehicle()); if (F.Follow(old_node.m_segment_last_tile, old_node.m_segment_last_td)) - Yapf().AddMultipleNodes(&old_node, F.m_new_tile, F.m_new_td_bits); + Yapf().AddMultipleNodes(&old_node, F); } /// return debug report character to identify the transportation type |