(svn r14019) -Fix [FS#2205]: game crash after order skip while waiting for free path (michi_cc).

This commit is contained in:
rubidium
2008-08-08 09:31:50 +00:00
parent 2cb555ed11
commit de629dd62f
3 changed files with 33 additions and 6 deletions

View File

@@ -182,7 +182,8 @@ struct CYapfRailNodeT
template <class Tbase, class Tfunc, class Tpf>
bool IterateTiles(const Vehicle *v, Tpf &yapf, Tbase &obj, bool (Tfunc::*func)(TileIndex, Trackdir)) const
{
typename Tbase::TrackFollower ft(v, yapf.GetCompatibleRailTypes());
typedef typename Tbase::TrackFollower TrackFollower;
typename TrackFollower::BaseNoMask ft(v, yapf.GetCompatibleRailTypes());
TileIndex cur = base::GetTile();
Trackdir cur_td = base::GetTrackdir();