diff --git a/src/world/footpath.c b/src/world/footpath.c index 8bcbd4ea52..a4943c1ee6 100644 --- a/src/world/footpath.c +++ b/src/world/footpath.c @@ -972,7 +972,7 @@ static void loc_6A6D7E( } } if (z - 2 == mapElement->base_height) { - if (footpath_element_is_sloped(mapElement) && footpath_element_get_slope_direction(mapElement) != (direction ^ 2)) { + if (!footpath_element_is_sloped(mapElement) && footpath_element_get_slope_direction(mapElement) != (direction ^ 2)) { return; } goto loc_6A6F1F;