You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07:00
Fix #14067: Nullptr exception in vehicle measurement code
This commit is contained in:
@@ -1886,6 +1886,9 @@ void Vehicle::UpdateMeasurements()
|
||||
continue;
|
||||
|
||||
rct_scenery_entry* scenery = tileElement->AsSmallScenery()->GetEntry();
|
||||
if (scenery == nullptr)
|
||||
continue;
|
||||
|
||||
if (scenery_small_entry_has_flag(scenery, SMALL_SCENERY_FLAG_FULL_TILE))
|
||||
{
|
||||
coverFound = true;
|
||||
|
||||
Reference in New Issue
Block a user