1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

refactor: enum class ObjectType is casted to int for test to pass

This commit is contained in:
Łukasz Pękalski
2020-11-10 09:49:54 +01:00
parent 7648feeba2
commit d287d71624

View File

@@ -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;