From ada164ac92c4c4caafb800d8d41c9b7f5bfdeb1f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 31 Jul 2021 21:39:43 +0200 Subject: [PATCH] Remove one write to gGameCommandErrorText All callers assume the landscape data area is full if the function returns false and set that error themselves. --- src/openrct2/world/Map.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 8500825095..4dcbba361a 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -207,7 +207,6 @@ static bool map_check_free_elements_and_reorganise(size_t numElementsOnTile, siz // Check hard cap on num in use tiles (this would be the size of _tileElements immediately after a reorg) if (_tileElementsInUse + numNewElements > MAX_TILE_ELEMENTS) { - gGameCommandErrorText = STR_ERR_LANDSCAPE_DATA_AREA_FULL; return false; }