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:
committed by
GitHub
parent
9132c9ad8d
commit
b275e7b82e
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user