diff options
author | reduz <reduzio@gmail.com> | 2020-11-09 00:19:09 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2020-11-09 08:54:43 -0300 |
commit | 221a2a17422dfbb7e0be5ca42fe56b91adb656e3 (patch) | |
tree | 8b07402f807804ee8944b047a4ffe683c6027b12 /core/object | |
parent | 593e35346ab182c36068c3dcfc741eeb7311a19e (diff) | |
download | redot-engine-221a2a17422dfbb7e0be5ca42fe56b91adb656e3.tar.gz |
Refactored variant constructor logic
Diffstat (limited to 'core/object')
-rw-r--r-- | core/object/object.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index ffec2ae867..c3f49856ca 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -1690,7 +1690,8 @@ Variant::Type Object::get_static_property_type_indexed(const Vector<StringName> } Callable::CallError ce; - Variant check = Variant::construct(t, nullptr, 0, ce); + Variant check; + Variant::construct(t, check, nullptr, 0, ce); for (int i = 1; i < p_path.size(); i++) { if (check.get_type() == Variant::OBJECT || check.get_type() == Variant::DICTIONARY || check.get_type() == Variant::ARRAY) { |