1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Stop using (void*)-1 for invalid pointers

This commit is contained in:
Tomas Dittmann
2017-10-15 15:53:16 +02:00
committed by Michael Steenbeek
parent 74f1eb39a8
commit e393ff1f22
35 changed files with 102 additions and 116 deletions

View File

@@ -766,7 +766,7 @@ track_design_place_scenery(rct_td6_scenery_element * scenery_start, uint8 rideIn
path = get_footpath_entry(entry_index), entry_index++
)
{
if (path == (rct_footpath_entry *) -1)
if (path == nullptr)
{
continue;
}
@@ -894,7 +894,7 @@ track_design_place_scenery(rct_td6_scenery_element * scenery_start, uint8 rideIn
path = get_footpath_entry(entry_index), entry_index++)
{
if (path == (rct_footpath_entry *) -1)
if (path == nullptr)
{
continue;
}