diff --git a/src/openrct2/actions/ClearAction.hpp b/src/openrct2/actions/ClearAction.hpp index 82684cdc34..1615734a6d 100644 --- a/src/openrct2/actions/ClearAction.hpp +++ b/src/openrct2/actions/ClearAction.hpp @@ -241,7 +241,7 @@ private: { if (tileElement->GetType() == TILE_ELEMENT_TYPE_LARGE_SCENERY) { - tileElement->flags &= ~TILE_ELEMENT_FLAG_LARGE_SCENERY_ACCOUNTED; + tileElement->AsLargeScenery()->SetIsAccounted(false); } } while (!(tileElement++)->IsLastForTile()); } diff --git a/src/openrct2/actions/LargeSceneryRemoveAction.hpp b/src/openrct2/actions/LargeSceneryRemoveAction.hpp index 6a63d92e08..4de461e788 100644 --- a/src/openrct2/actions/LargeSceneryRemoveAction.hpp +++ b/src/openrct2/actions/LargeSceneryRemoveAction.hpp @@ -113,11 +113,11 @@ public: // scenery tile elements. if (flags & GAME_COMMAND_FLAG_PATH_SCENERY) { - if (tileElement->flags & TILE_ELEMENT_FLAG_LARGE_SCENERY_ACCOUNTED) + if (tileElement->AsLargeScenery()->IsAccounted()) calculate_cost = false; // Sets the flag to prevent this being counted in additional calls - tileElement->flags |= TILE_ELEMENT_FLAG_LARGE_SCENERY_ACCOUNTED; + tileElement->AsLargeScenery()->SetIsAccounted(true); } }