mirror of https://github.com/OpenRCT2/OpenRCT2.git
Change `if(elem!=nullptr)` to `if(elem==nullptr)`
This commit is contained in:
parent
f49fe68cc6
commit
257c2d45d3
|
@ -184,14 +184,14 @@ GameActions::Result LargeSceneryRemoveAction::Execute() const
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* sceneryElement = FindLargeSceneryElement(currentTile, i);
|
auto* sceneryElement = FindLargeSceneryElement(currentTile, i);
|
||||||
if (sceneryElement != nullptr)
|
if (sceneryElement == nullptr)
|
||||||
{
|
{
|
||||||
MapInvalidateTileFull(currentTile);
|
LOG_ERROR("Tile not found when trying to remove element!");
|
||||||
TileElementRemove(sceneryElement);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_ERROR("Tile not found when trying to remove element!");
|
MapInvalidateTileFull(currentTile);
|
||||||
|
TileElementRemove(sceneryElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue