1
0
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:
Rubidium
2024-12-31 22:44:12 +01:00
committed by rubidium42
parent 562ec74812
commit fd5f6caed4
20 changed files with 48 additions and 48 deletions

View File

@@ -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()