mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 11:15:13 +01:00
Use RideId::GetNull and RideId::IsNull over constant
This commit is contained in:
@@ -1353,7 +1353,7 @@ rct_window* WindowRideOpenTrack(TileElement* tileElement)
|
||||
{
|
||||
assert(tileElement != nullptr);
|
||||
auto rideIndex = tileElement->GetRideIndex();
|
||||
if (rideIndex != RIDE_ID_NULL)
|
||||
if (!rideIndex.IsNull())
|
||||
{
|
||||
auto ride = get_ride(rideIndex);
|
||||
if (ride != nullptr)
|
||||
|
||||
Reference in New Issue
Block a user