1
0
Fork 0

(svn r9922) -Fix (r9914): [YAPF] null pointer dereference.

release/0.6
rubidium 2007-05-25 15:49:14 +00:00
parent 8484a9a2e5
commit 9e7798c42e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public:
* and adds it to the open list by calling Yapf().AddNewNode(n) */
inline void PfFollowNode(Node& old_node)
{
TrackFollower F;
TrackFollower F(Yapf().GetVehicle());
if (F.Follow(old_node.m_key.m_tile, old_node.m_key.m_td))
Yapf().AddMultipleNodes(&old_node, F);
}