From adc5363202629aa07c762f459d7e9f5bc78efa34 Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 1 Jul 2009 22:22:01 +0000 Subject: (svn r16717) -Codechange: make IsFrontEngine() member of Train --- src/train_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_gui.cpp') diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 458b51a43..9f0373065 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -26,7 +26,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) const Vehicle *found = NULL; const Train *t; FOR_ALL_TRAINS(t) { - if (IsFrontEngine(t) && t->tile == tile && + if (t->IsFrontEngine() && t->tile == tile && t->track == TRACK_BIT_DEPOT) { if (found != NULL) return; // must be exactly one. found = t; -- cgit v1.2.3-54-g00ecf