forked from rosebudai/OpenRCT2-Web
Reduce use of MAX_RIDES and RIDE_TYPE_NULL
This commit is contained in:
1 parent
414b53b56d
commit
e23638548a
19 files changed
+69
-112
No files matched your search
@@ -187,8 +187,8 @@ void setup_in_use_selection_flags()
|
||||
|
||||
for (uint8_t ride_index = 0; ride_index < 0xFF; ride_index++)
|
||||
{
|
||||
Ride* ride = get_ride(ride_index);
|
||||
if (ride->type != RIDE_TYPE_NULL)
|
||||
auto ride = get_ride(ride_index);
|
||||
if (ride != nullptr)
|
||||
{
|
||||
uint8_t type = ride->subtype;
|
||||
Editor::SetSelectedObject(OBJECT_TYPE_RIDE, type, OBJECT_SELECTION_FLAG_SELECTED);
|
||||
|
||||
Reference in new issue
Block a user