From 8bfda5cab1e749637f6bf881c12c82a466dc38e4 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 5 Feb 2021 20:08:51 +0200 Subject: [PATCH] Use correct condition --- src/openrct2/actions/FootpathPlaceAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;