1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix: clicking an unsuitable piece of land in footpath drag mode will place a piece anyway

Specifically, path will be placed on the last tile that was suitable.
This commit is contained in:
Gymnasiast
2025-10-20 20:01:02 +02:00
parent 97cebeed81
commit f39aa017e8

View File

@@ -1193,6 +1193,7 @@ namespace OpenRCT2::Ui::Windows
{ {
return; return;
} }
_provisionalFootpath.tiles.clear();
auto mapPos = FootpathGetPlacePositionFromScreenPosition(screenCoords); auto mapPos = FootpathGetPlacePositionFromScreenPosition(screenCoords);
if (!mapPos) if (!mapPos)