From d1963dc133d3fdc8f6ab90d47a87158dac7ebd2a Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 23 Oct 2022 14:39:16 +0200 Subject: [PATCH] Correct __constant_get_bitfield_name with StringName --- include/godot_cpp/core/type_info.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/godot_cpp/core/type_info.hpp b/include/godot_cpp/core/type_info.hpp index a2abe44..4c3f1bf 100644 --- a/include/godot_cpp/core/type_info.hpp +++ b/include/godot_cpp/core/type_info.hpp @@ -278,7 +278,7 @@ public: TEMPL_MAKE_BITFIELD_TYPE_INFO(m_class, m_enum, const m_enum &) template -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::VARIANT_TYPE == Variant::NIL) { ERR_PRINT(("Missing VARIANT_ENUM_CAST for constant's bitfield: " + String(p_constant)).utf8().get_data()); }