From d880fbda56e92d2c1059979111535e5eb2890c87 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 26 Jul 2021 21:17:33 +0200 Subject: [PATCH] Use constant for RCT1 max map size --- src/openrct2/rct1/S4Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index d5e96e1f2f..c60234fa38 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -462,7 +462,7 @@ private: void AddAvailableEntriesFromMap() { - size_t maxTiles = 128 * 128; + size_t maxTiles = RCT1_MAX_MAP_SIZE * RCT1_MAX_MAP_SIZE; size_t tileIndex = 0; RCT12TileElement* tileElement = _s4.tile_elements;