diff --git a/src/openrct2/Cheats.cpp b/src/openrct2/Cheats.cpp index 4849051c80..03a4b139f4 100644 --- a/src/openrct2/Cheats.cpp +++ b/src/openrct2/Cheats.cpp @@ -453,7 +453,7 @@ static void cheat_own_all_land() for (coords.x = min; coords.x <= max; coords.x += 32) { TileElement* surfaceElement = map_get_surface_element_at(coords); - if (!surfaceElement) + if (surfaceElement == nullptr) continue; // Ignore already owned tiles. diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index bb8fd6a9c4..82eb5c539b 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -3585,7 +3585,7 @@ void rct_peep::UpdateRideAdvanceThroughEntrance() return; } - Guard::Assert(sub_state == PEEP_RIDE_LEAVE_ENTRANCE, "Peep substate should be LEAVE_ENTRACE"); + Guard::Assert(sub_state == PEEP_RIDE_LEAVE_ENTRANCE, "Peep substate should be LEAVE_ENTRANCE"); if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_NO_VEHICLES)) { TileCoordsXYZD entranceLocation = ride_get_entrance_location(current_ride, current_ride_station);