1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Add static GetNull member

This commit is contained in:
ζeh Matt
2021-11-07 17:30:59 +02:00
parent 4ba2c101c9
commit 15396fee5d
2 changed files with 6 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ public:
{
}
static constexpr TIdentifier GetNull() noexcept
{
return Null;
}
static constexpr TIdentifier FromUnderlying(const T val) noexcept
{
return TIdentifier{ val };

View File

@@ -1744,7 +1744,7 @@ static int32_t guest_path_find_park_entrance(Peep* peep, uint8_t edges)
if (!(peep->PeepFlags & PEEP_FLAGS_PARK_ENTRANCE_CHOSEN))
{
ParkEntranceIndex chosenEntrance = ParkEntranceIndex::Null;
auto chosenEntrance = ParkEntranceIndex::GetNull();
uint16_t nearestDist = 0xFFFF;
uint8_t entranceNum = 0;
for (const auto& entrance : gParkEntrances)