We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca6907 commit 970b40bCopy full SHA for 970b40b
godot-core/src/builtin/collections/array.rs
@@ -813,7 +813,8 @@ impl<T: ArrayElement> Array<T> {
813
class_name.string_sys()
814
} else {
815
empty_string_name = Some(StringName::default());
816
- empty_string_name.unwrap().string_sys()
+ // as_ref() crucial here -- otherwise the StringName is dropped.
817
+ empty_string_name.as_ref().unwrap().string_sys()
818
};
819
820
// SAFETY: The array is a newly created empty untyped array.
0 commit comments