From 18995664fe2e7f0de6ff9d27562ab6cb58a0d6d7 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Mon, 8 Jun 2020 17:03:18 -0300 Subject: [PATCH] Use constant to check null Peep::CurrentRide --- src/openrct2/peep/GuestPathfinding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 092c7f0173..36cad9cf14 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -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); }