Use correct condition

This commit is contained in:
Matt 2021-02-05 20:08:51 +02:00
parent 35e52acd7d
commit 8bfda5cab1
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 1 additions and 1 deletions

View File

@ -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;