1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Update calls to ClearAs()

This commit is contained in:
Gymnasiast
2021-12-10 22:58:27 +01:00
parent 2d1af0ec42
commit 50c0080da8
6 changed files with 11 additions and 10 deletions

View File

@@ -2160,7 +2160,7 @@ static void TrackDesignPreviewClearMap()
for (int32_t i = 0; i < numTiles; i++)
{
auto* element = &tileElements.emplace_back();
element->ClearAs(TILE_ELEMENT_TYPE_SURFACE);
element->ClearAs(TileElementTypeN::Surface);
element->SetLastForTile(true);
element->AsSurface()->SetSlope(TILE_ELEMENT_SLOPE_FLAT);
element->AsSurface()->SetWaterHeight(0);