summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_waypointlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_waypointlist.cpp')
-rw-r--r--src/ai/api/ai_waypointlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_waypointlist.cpp b/src/ai/api/ai_waypointlist.cpp
index c2d87e6b7..20bc58544 100644
--- a/src/ai/api/ai_waypointlist.cpp
+++ b/src/ai/api/ai_waypointlist.cpp
@@ -13,7 +13,7 @@ AIWaypointList::AIWaypointList()
{
const Waypoint *wp;
FOR_ALL_WAYPOINTS(wp) {
- if (wp->owner == _current_company) this->AddItem(wp->index);
+ if (wp->facilities & FACIL_TRAIN && wp->owner == _current_company) this->AddItem(wp->index);
}
}