mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Merry-go-round doesn't receive its vehicle until it gets tested/opened, but tries painting non-existent guests anyway, leading to reference binding to nullptr.
This commit is contained in:
committed by
GitHub
parent
1ec62e44bb
commit
ee6746373e
@@ -92,7 +92,10 @@ static void PaintCarousel(
|
||||
auto imageId = imageTemplate.WithIndex(rideEntry->Cars[0].base_image_id + imageOffset);
|
||||
PaintAddImageAsParent(session, imageId, offset, bb);
|
||||
|
||||
PaintRiders(session, ride, *rideEntry, *vehicle, rotationOffset, offset, bb);
|
||||
if (vehicle != nullptr && vehicle->num_peeps > 0)
|
||||
{
|
||||
PaintRiders(session, ride, *rideEntry, *vehicle, rotationOffset, offset, bb);
|
||||
}
|
||||
|
||||
session.CurrentlyDrawnEntity = nullptr;
|
||||
session.InteractionType = ViewportInteractionItem::Ride;
|
||||
|
||||
Reference in New Issue
Block a user