mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Use RideId::GetNull and RideId::IsNull over constant
This commit is contained in:
@@ -71,7 +71,7 @@ void RideCreateAction::Serialise(DataSerialiser& stream)
|
||||
GameActions::Result RideCreateAction::Query() const
|
||||
{
|
||||
auto rideIndex = GetNextFreeRideId();
|
||||
if (rideIndex == RIDE_ID_NULL)
|
||||
if (rideIndex.IsNull())
|
||||
{
|
||||
// No more free slots available.
|
||||
return GameActions::Result(
|
||||
|
||||
Reference in New Issue
Block a user