(svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)

This commit is contained in:
Darkvater 2006-08-14 22:23:13 +00:00
parent 68c2a77910
commit d87487c493
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}