diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index b7acd797eb..266fdd6316 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -965,7 +965,7 @@ void Guest::Tick128UpdateGuest(int32_t index) break; if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH) continue; - if (tileElement->GetBaseZ() == NextLoc.z) + if (tileElement->GetBaseZ() != NextLoc.z) continue; // Check if the footpath has a queue line TV monitor on it diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index f6e96a65ef..67365c5dc0 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -1663,7 +1663,7 @@ static int32_t peep_update_patrolling_find_watering(Peep* peep) continue; } - uint8_t z_diff = abs(peep->NextLoc.z - tile_element->GetBaseZ()); + auto z_diff = abs(peep->NextLoc.z - tile_element->GetBaseZ()); if (z_diff >= 4 * COORDS_Z_STEP) {