1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #10919: Crash when assertion fails in heavily damaged park (#10921)

This commit is contained in:
Michael Steenbeek
2020-03-13 10:35:03 +01:00
committed by GitHub
parent 3003e1de75
commit 9b5e8140f9

View File

@@ -2511,7 +2511,11 @@ static void peep_choose_seat_from_car(Peep* peep, Ride* ride, Vehicle* vehicle)
static void peep_go_to_ride_entrance(Guest* peep, Ride* ride)
{
TileCoordsXYZD location = ride_get_entrance_location(ride, peep->current_ride_station);
Guard::Assert(!location.isNull());
if (location.isNull())
{
peep->RemoveFromQueue();
return;
}
int32_t x = location.x;
int32_t y = location.y;