1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Change if(elem!=nullptr) to if(elem==nullptr)

This commit is contained in:
Peter Froud
2024-03-16 23:28:46 -07:00
committed by Gymnasiast
parent f49fe68cc6
commit 257c2d45d3

View File

@@ -184,14 +184,14 @@ GameActions::Result LargeSceneryRemoveAction::Execute() const
}
auto* sceneryElement = FindLargeSceneryElement(currentTile, i);
if (sceneryElement != nullptr)
if (sceneryElement == nullptr)
{
MapInvalidateTileFull(currentTile);
TileElementRemove(sceneryElement);
LOG_ERROR("Tile not found when trying to remove element!");
}
else
{
LOG_ERROR("Tile not found when trying to remove element!");
MapInvalidateTileFull(currentTile);
TileElementRemove(sceneryElement);
}
}