Skip to content

Commit 2efb83a

Browse files
committed
Updated typed dictionary initializer_list constructor to match godot
1 parent d72452d commit 2efb83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/godot_cpp/variant/typed_dictionary.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class TypedDictionary : public Dictionary {
122122
} \
123123
_FORCE_INLINE_ TypedDictionary(std::initializer_list<KeyValue<m_type, T>> p_init) : \
124124
Dictionary() { \
125-
set_typed(m_variant_type, StringName(), Variant(), Variant::OBJECT, T::get_class_static(), Variant()); \
125+
set_typed(m_variant_type, StringName(), Variant(), Variant::OBJECT, StringName(), Variant()); \
126126
for (const KeyValue<m_type, T> &E : p_init) { \
127127
operator[](E.key) = E.value; \
128128
} \

0 commit comments

Comments
 (0)