mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
refactor: enum class ObjectType is casted to int for test to pass
This commit is contained in:
@@ -127,7 +127,7 @@ Ride* get_ride(ride_id_t index)
|
|||||||
|
|
||||||
rct_ride_entry* get_ride_entry(ObjectEntryIndex index)
|
rct_ride_entry* get_ride_entry(ObjectEntryIndex index)
|
||||||
{
|
{
|
||||||
if (index >= object_entry_group_counts[ObjectType::Ride])
|
if (index >= object_entry_group_counts[static_cast<int>(ObjectType::Ride)])
|
||||||
{
|
{
|
||||||
log_error("invalid index %d for ride type", index);
|
log_error("invalid index %d for ride type", index);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user