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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user