1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Fix #14294: NPE in map_animation_invalidate_wall_door()

This commit is contained in:
Michael Steenbeek
2021-03-20 17:09:37 +01:00
committed by GitHub
parent 9132c9ad8d
commit b275e7b82e

View File

@@ -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())