(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' with GetDepotIndex(tile)

This commit is contained in:
rubidium
2009-09-10 14:37:55 +00:00
parent f93e63fa22
commit 91024042ea
8 changed files with 17 additions and 21 deletions

View File

@@ -349,7 +349,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or
order.MakeGoToDepot(::GetStationIndex(destination), odtf, onsf, odaf);
} else {
if (::IsTileType(destination, MP_STATION)) return false;
order.MakeGoToDepot(::Depot::GetByTile(destination)->index, odtf, onsf, odaf);
order.MakeGoToDepot(::GetDepotIndex(destination), odtf, onsf, odaf);
}
break;
}