1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 18:07:53 +01:00

Use constant to check null Peep::CurrentRide

This commit is contained in:
Tulio Leao
2020-06-08 17:03:18 -03:00
parent 1ee5653c8c
commit 18995664fe

View File

@@ -1648,7 +1648,7 @@ static int32_t guest_path_find_park_entrance(Peep* peep, uint8_t edges)
// If entrance no longer exists, choose a new one
if ((peep->PeepFlags & PEEP_FLAGS_PARK_ENTRANCE_CHOSEN) && peep->CurrentRide >= gParkEntrances.size())
{
peep->CurrentRide = 0xFF;
peep->CurrentRide = RIDE_ID_NULL;
peep->PeepFlags &= ~(PEEP_FLAGS_PARK_ENTRANCE_CHOSEN);
}