diff --git a/distribution/changelog.txt b/distribution/changelog.txt index ab6b05bc53..4ddf4ec835 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Change: [#25018] Add upkeep cost to booster pieces. - Fix: [#4643, #25167] Many metal supports draw with a filled in top when they didn't in vanilla, causing some slight misalignment and glitching. - Fix: [#15009] Landscaping tools do not display estimates when the game is paused (original bug). +- Fix: [#18441] Replacing footpaths sometimes results in a spurious “Footpath in the way” error. - Fix: [#25221] When trying to cancel game file discovery, the prompt reappears. - Fix: [#25739] Game freezes when a tab in the New Ride window contains more than 384 items. - Fix: [#25745] Crash when a player connection is aborted early. diff --git a/src/openrct2/actions/FootpathPlaceAction.cpp b/src/openrct2/actions/FootpathPlaceAction.cpp index 3204d94b6e..78f4f732a0 100644 --- a/src/openrct2/actions/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/FootpathPlaceAction.cpp @@ -537,7 +537,7 @@ namespace OpenRCT2::GameActions continue; if (pathElement->IsSloped() != isSloped) continue; - if (pathElement->GetSlopeDirection() != slope.direction) + if (isSloped && pathElement->GetSlopeDirection() != slope.direction) continue; return pathElement; }