1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix typo, fix nullptr check notation

This commit is contained in:
Gymnasiast
2018-12-22 15:31:28 +01:00
parent fa3374c827
commit 958f287bb7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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