diff --git a/Source/Core/Common/EnumMap.h b/Source/Core/Common/EnumMap.h index 478ff42ec7..1418c1f01e 100644 --- a/Source/Core/Common/EnumMap.h +++ b/Source/Core/Common/EnumMap.h @@ -58,7 +58,7 @@ public: constexpr V& operator[](BitField key) { static_assert(1 << bits == s_size, "Unsafe indexing into EnumMap (may go out of bounds)"); - return m_array[static_cast(key.value())]; + return m_array[static_cast(key.Value())]; } constexpr bool InBounds(T key) const { return static_cast(key) < s_size; }