1
0
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:
Michał Janiszewski
2016-07-18 23:46:08 +02:00
parent 2900999944
commit 8446ae9026

View File

@@ -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;