mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Check for NULL scenery
This commit is contained in:
@@ -426,6 +426,9 @@ static uint8 peep_assess_surroundings(sint16 center_x, sint16 center_y, sint16 c
|
||||
break;
|
||||
|
||||
scenery = get_footpath_item_entry(footpath_element_get_path_scenery_index(mapElement));
|
||||
if (scenery == NULL) {
|
||||
return PEEP_THOUGHT_TYPE_NONE;
|
||||
}
|
||||
if (footpath_element_path_scenery_is_ghost(mapElement))
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user