diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 61e4509844..75d5d85fb5 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -98,7 +98,7 @@ int16_t gMapSize; int16_t gMapSizeMaxXY; int16_t gMapBaseZ; -TileElement gTileElements[MAX_TILE_TILE_ELEMENT_POINTERS * 3]; +TileElement gTileElements[MAX_TILE_ELEMENTS]; TileElement* gTileElementTilePointers[MAX_TILE_TILE_ELEMENT_POINTERS]; std::vector gMapSelectionTiles; std::vector gPeepSpawns; diff --git a/src/openrct2/world/Map.h b/src/openrct2/world/Map.h index 891dc82671..736ab47d84 100644 --- a/src/openrct2/world/Map.h +++ b/src/openrct2/world/Map.h @@ -119,7 +119,7 @@ extern uint8_t gMapSelectArrowDirection; extern uint8_t gMapGroundFlags; -extern TileElement gTileElements[MAX_TILE_TILE_ELEMENT_POINTERS * 3]; +extern TileElement gTileElements[MAX_TILE_ELEMENTS]; extern TileElement* gTileElementTilePointers[MAX_TILE_TILE_ELEMENT_POINTERS]; extern std::vector gMapSelectionTiles;