diff options
author | KUDr <kudr@openttd.org> | 2007-06-24 13:18:54 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-06-24 13:18:54 +0000 |
commit | ef4c335cb4cffa16660944e16e2f1485b1b2188b (patch) | |
tree | 42cac90210571c53b0b0022f4126869724020aae /src/yapf/yapf_ship.cpp | |
parent | c600158c1df336153eb6705eded718f0434fee75 (diff) | |
download | openttd-ef4c335cb4cffa16660944e16e2f1485b1b2188b.tar.xz |
(svn r10301) -Fix [FS#901, YAPF]: another assert violation in some special cases (immeR)
Diffstat (limited to 'src/yapf/yapf_ship.cpp')
-rw-r--r-- | src/yapf/yapf_ship.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_ship.cpp b/src/yapf/yapf_ship.cpp index cb9176a99..b3cee7aa6 100644 --- a/src/yapf/yapf_ship.cpp +++ b/src/yapf/yapf_ship.cpp @@ -100,7 +100,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) { // base tile cost depending on distance int c = IsDiagonalTrackdir(n.GetTrackdir()) ? 10 : 7; |