You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07: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