Correct __constant_get_bitfield_name with StringName

pull/896/head
Emmanuel Leblond 2022-10-23 14:39:16 +02:00
parent a706a9ceb9
commit d1963dc133
No known key found for this signature in database
GPG Key ID: C360860E645EFFC0
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ public:
TEMPL_MAKE_BITFIELD_TYPE_INFO(m_class, m_enum, const m_enum &)
template <typename T>
inline const char *__constant_get_bitfield_name(T param, const char *p_constant) {
inline StringName __constant_get_bitfield_name(T param, StringName p_constant) {
if (GetTypeInfo<T>::VARIANT_TYPE == Variant::NIL) {
ERR_PRINT(("Missing VARIANT_ENUM_CAST for constant's bitfield: " + String(p_constant)).utf8().get_data());
}