mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 11:44:17 +01:00
Codechange: use explicit TileIndex constructor for tile 0
This commit is contained in:
@@ -831,7 +831,7 @@ static uint8_t AircraftGetEntryPoint(const Aircraft *v, const AirportFTAClass *a
|
||||
/* In the case the station doesn't exit anymore, set target tile 0.
|
||||
* It doesn't hurt much, aircraft will go to next order, nearest hangar
|
||||
* or it will simply crash in next tick */
|
||||
TileIndex tile = 0;
|
||||
TileIndex tile{};
|
||||
|
||||
const Station *st = Station::GetIfValid(v->targetairport);
|
||||
if (st != nullptr) {
|
||||
@@ -1305,7 +1305,7 @@ TileIndex Aircraft::GetOrderStationLocation(StationID)
|
||||
}
|
||||
|
||||
/* Aircraft do not use dest-tile */
|
||||
return 0;
|
||||
return TileIndex{};
|
||||
}
|
||||
|
||||
void Aircraft::MarkDirty()
|
||||
|
||||
Reference in New Issue
Block a user