From d287d716240e8c264c727585483262fc156d25d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20P=C4=99kalski?= Date: Tue, 10 Nov 2020 09:49:54 +0100 Subject: [PATCH] refactor: enum class ObjectType is casted to int for test to pass --- test/testpaint/Compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index edf92450e8..2f6b87d350 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -127,7 +127,7 @@ Ride* get_ride(ride_id_t 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(ObjectType::Ride)]) { log_error("invalid index %d for ride type", index); return nullptr;