Fix #18441: Spurious error when trying to replace footpath (#25880)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2026-01-27 22:47:19 +01:00
1 parent 7aaa124cef
commit 6bc432dd12
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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.
+1 -1
View File
@@ -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;
}