From f5f3bfe087d4a8869431fe043d01b76656c70c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 5 Dec 2018 23:01:13 +0100 Subject: [PATCH] Fix invalid scenery entry (#8328) --- src/openrct2/world/MapAnimation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index 8cd1c4557a..ef475fe7e4 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -554,7 +554,8 @@ static bool map_animation_invalidate_wall(int32_t x, int32_t y, int32_t baseZ) sceneryEntry = tileElement->AsWall()->GetEntry(); - if (!(sceneryEntry->wall.flags2 & WALL_SCENERY_2_ANIMATED) && sceneryEntry->wall.scrolling_mode == 255) + if (!sceneryEntry + || (!(sceneryEntry->wall.flags2 & WALL_SCENERY_2_ANIMATED) && sceneryEntry->wall.scrolling_mode == 255)) continue; int32_t z = tileElement->base_height * 8;