Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416)

This commit is contained in:
Loïc Guilloux
2024-04-03 23:16:36 +02:00
committed by GitHub
parent 931aa39018
commit 243c6bead3
3 changed files with 10 additions and 7 deletions

View File

@@ -791,6 +791,8 @@ public:
*/
virtual TileIndex GetOrderStationLocation([[maybe_unused]] StationID station) { return INVALID_TILE; }
virtual TileIndex GetCargoTile() const { return this->tile; }
/**
* Find the closest depot for this vehicle and tell us the location,
* DestinationID and whether we should reverse.