From d2c03cbbba1b982217fc0bc77df52dca049877fc Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 6 Mar 2020 09:38:24 +0100 Subject: [PATCH] Fix gTileElements size --- src/openrct2/world/Map.cpp | 2 +- src/openrct2/world/Map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;