Invalidate previous selection when ctrl-clicking something new

This commit is contained in:
Michael Bernardi 2023-07-23 00:08:13 +02:00
parent a26464b897
commit d850a535aa
1 changed files with 5 additions and 0 deletions

View File

@ -1758,6 +1758,11 @@ private:
return;
}
if (auto* elem = OpenRCT2::TileInspector::GetSelectedElement(); elem != nullptr)
{
MapInvalidateElement(windowTileInspectorTile.ToCoordsXY(), elem);
}
_tileSelected = true;
_toolMap = mapCoords;
windowTileInspectorTile = TileCoordsXY(mapCoords);