Fix #10550: Hovering the mouse cursor with path on a certain height level works weird (#10552)

This commit is contained in:
Michael Steenbeek 2020-01-12 14:26:15 +01:00 committed by GitHub
parent f05aeb1fcd
commit c5297dfcdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ static void window_footpath_set_provisional_path_at_point(ScreenCoordsXY screenC
break;
}
}
uint8_t z = tileElement->GetBaseZ();
auto z = tileElement->GetBaseZ();
if (slope & RAISE_FOOTPATH_FLAG)
{
slope &= ~RAISE_FOOTPATH_FLAG;