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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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;