(svn r10301) -Fix [FS#901, YAPF]: another assert violation in some special cases (immeR)

This commit is contained in:
KUDr
2007-06-24 13:18:54 +00:00
parent c600158c1d
commit ef4c335cb4
6 changed files with 303 additions and 151 deletions

View File

@@ -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;