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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user