forked from rosebudai/OpenRCT2-Web
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:
1 parent
1ec62e44bb
commit
ee6746373e
1 file changed
+4
-1
@@ -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