Fix typo, fix nullptr check notation

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

No files matched your search

+1 -1
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.
+1 -1
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);