mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)
This commit is contained in:
parent
68c2a77910
commit
d87487c493
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue