1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Avoid dereferencing invalid map_get_first_element_at return

This commit is contained in:
Tulio Leao
2019-10-13 09:24:19 -03:00
parent e1a9e6005d
commit 35577f5b19
10 changed files with 42 additions and 7 deletions

View File

@@ -365,6 +365,8 @@ static bool map_animation_invalidate_track_whirlpool(int32_t x, int32_t y, int32
TileElement* tileElement;
tileElement = map_get_first_element_at(x >> 5, y >> 5);
if (tileElement == nullptr)
return true;
do
{
if (tileElement->base_height != baseZ)