From efb3637d0f7fc423e2b4f31a67058455a5183da5 Mon Sep 17 00:00:00 2001 From: KUDr Date: Sat, 24 Feb 2007 00:17:46 +0000 Subject: (svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche) --- src/yapf/yapf_rail.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/yapf/yapf_rail.cpp') diff --git a/src/yapf/yapf_rail.cpp b/src/yapf/yapf_rail.cpp index 8b88fde26..7e7713f48 100644 --- a/src/yapf/yapf_rail.cpp +++ b/src/yapf/yapf_rail.cpp @@ -36,7 +36,7 @@ public: { TrackFollower F(Yapf().GetVehicle()); if (F.Follow(old_node.GetLastTile(), old_node.GetLastTrackdir())) - Yapf().AddMultipleNodes(&old_node, F.m_new_tile, F.m_new_td_bits); + Yapf().AddMultipleNodes(&old_node, F); } /// return debug report character to identify the transportation type @@ -99,7 +99,7 @@ public: { TrackFollower F(Yapf().GetVehicle()); if (F.Follow(old_node.GetLastTile(), old_node.GetLastTrackdir())) - Yapf().AddMultipleNodes(&old_node, F.m_new_tile, F.m_new_td_bits); + Yapf().AddMultipleNodes(&old_node, F); } /// return debug report character to identify the transportation type -- cgit v1.2.3-54-g00ecf