summaryrefslogtreecommitdiffstats
path: root/include/core/Array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/Array.hpp')
-rw-r--r--include/core/Array.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/Array.hpp b/include/core/Array.hpp
index d766c54..3d13914 100644
--- a/include/core/Array.hpp
+++ b/include/core/Array.hpp
@@ -57,6 +57,11 @@ class Object;
class Array {
godot_array _godot_array;
+ friend class Variant;
+ inline explicit Array(const godot_array &other) {
+ _godot_array = other;
+ }
+
public:
Array();
Array(const Array &other);