diff options
Diffstat (limited to 'yapf')
-rw-r--r-- | yapf/yapf_road.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yapf/yapf_road.cpp b/yapf/yapf_road.cpp index 086c30332..30ece09b2 100644 --- a/yapf/yapf_road.cpp +++ b/yapf/yapf_road.cpp @@ -365,6 +365,7 @@ public: Node& n = Yapf().GetBestNode(); TileIndex depot_tile = n.m_segment_last_tile; assert(IsTileDepotType(depot_tile, TRANSPORT_ROAD)); + if (!IsTileOwner(depot_tile, (Owner)v->owner)) return false; Depot* ret = GetDepotByTile(depot_tile); return ret; } |