1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Guard fence from null entry

Allows loading
http://www.nedesigns.com/park/3626/mediterranean-mysteries/
This commit is contained in:
Michał Janiszewski
2017-01-28 00:12:13 +01:00
parent 834cee311b
commit 0e7c94d98a

View File

@@ -134,7 +134,10 @@ void fence_paint(uint8 direction, sint32 height, rct_map_element * map_element)
{
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_WALL;
rct_scenery_entry * sceneryEntry = get_wall_entry(map_element->properties.fence.type);
rct_scenery_entry * sceneryEntry = get_wall_entry(map_element->properties.fence.type);
if (sceneryEntry == NULL) {
return;
}
uint32 frameNum = 0;
if (sceneryEntry->wall.flags2 & WALL_SCENERY_2_FLAG5) {