From c3993ee6661af824a60dec8cb8d32ecfeb58263f Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 May 2007 15:49:14 +0000 Subject: (svn r9922) -Fix (r9914): [YAPF] null pointer dereference. --- src/yapf/yapf_ship.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/yapf/yapf_ship.cpp b/src/yapf/yapf_ship.cpp index 06d7ffb67..cb9176a99 100644 --- a/src/yapf/yapf_ship.cpp +++ b/src/yapf/yapf_ship.cpp @@ -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); } -- cgit v1.2.3-70-g09d2