From b275e7b82efdbe98522c9301d6ea5a4e0e093847 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sat, 20 Mar 2021 17:09:37 +0100 Subject: [PATCH] Fix #14294: NPE in map_animation_invalidate_wall_door() --- src/openrct2/world/MapAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index cc86e52e00..174ba7a82c 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -496,7 +496,7 @@ static bool map_animation_invalidate_wall_door(const CoordsXYZ& loc) continue; sceneryEntry = tileElement->AsWall()->GetEntry(); - if (!(sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR)) + if (sceneryEntry == nullptr || !(sceneryEntry->wall.flags & WALL_SCENERY_IS_DOOR)) continue; if (game_is_paused())