1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Remove one write to gGameCommandErrorText

All callers assume the landscape data area is full if the function returns false and set that error themselves.
This commit is contained in:
Gymnasiast
2021-07-31 21:39:43 +02:00
parent e3c918ba5b
commit ada164ac92

View File

@@ -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;
}