summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-25 15:49:14 +0000
committerrubidium <rubidium@openttd.org>2007-05-25 15:49:14 +0000
commitc3993ee6661af824a60dec8cb8d32ecfeb58263f (patch)
tree50d94456906d223a7dade35c153083d5866be631 /src
parent9fc73931f12e6a66c6fe5d72957d2d0eefbea725 (diff)
downloadopenttd-c3993ee6661af824a60dec8cb8d32ecfeb58263f.tar.xz
(svn r9922) -Fix (r9914): [YAPF] null pointer dereference.
Diffstat (limited to 'src')
-rw-r--r--src/yapf/yapf_ship.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}