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:
committed by
Michael Steenbeek
parent
74f1eb39a8
commit
e393ff1f22
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user