diff --git a/src/openrct2/actions/FootpathPlaceAction.cpp b/src/openrct2/actions/FootpathPlaceAction.cpp index b9c5f8b1e3..42cf8ad919 100644 --- a/src/openrct2/actions/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/FootpathPlaceAction.cpp @@ -445,7 +445,7 @@ PathElement* FootpathPlaceAction::map_get_footpath_element_slope(const CoordsXYZ { if (pathElement->GetBaseZ() != footpathPos.z) continue; - if (pathElement->IsSloped() == isSloped) + if (pathElement->IsSloped() != isSloped) continue; if (pathElement->GetSlopeDirection() != slopeDirection) continue;