summaryrefslogtreecommitdiff
path: root/src/yapf
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
commit9e7798c42e14bc3a40f7f9f0357caa45667ace2a (patch)
tree50d94456906d223a7dade35c153083d5866be631 /src/yapf
parent8484a9a2e5d81a60b4848eb60c81d91244cd1066 (diff)
downloadopenttd-9e7798c42e14bc3a40f7f9f0357caa45667ace2a.tar.xz
(svn r9922) -Fix (r9914): [YAPF] null pointer dereference.
Diffstat (limited to 'src/yapf')
-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);
}