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:
@@ -34,6 +34,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
static constexpr TIdentifier GetNull() noexcept
|
||||
{
|
||||
return Null;
|
||||
}
|
||||
|
||||
static constexpr TIdentifier FromUnderlying(const T val) noexcept
|
||||
{
|
||||
return TIdentifier{ val };
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user