diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2017-05-20 15:52:56 +0200 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2017-06-08 07:21:53 +0200 |
commit | 8ecdbfc417409c9c8080580f3963e2397f8bdb78 (patch) | |
tree | e18f5e3bf44de3db54c765b514a05e10828b431e /modules/gdnative/godot/godot_variant.cpp | |
parent | b21e68c8bc0168120ded326259d021d394a9d7bf (diff) | |
download | redot-engine-8ecdbfc417409c9c8080580f3963e2397f8bdb78.tar.gz |
[GDnative] API consistency + missing properties
Diffstat (limited to 'modules/gdnative/godot/godot_variant.cpp')
-rw-r--r-- | modules/gdnative/godot/godot_variant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/godot/godot_variant.cpp b/modules/gdnative/godot/godot_variant.cpp index 9381fb86d3..c9607fb21a 100644 --- a/modules/gdnative/godot/godot_variant.cpp +++ b/modules/gdnative/godot/godot_variant.cpp @@ -45,10 +45,10 @@ godot_variant_type GDAPI godot_variant_get_type(const godot_variant *p_self) { return (godot_variant_type)self->get_type(); } -void GDAPI godot_variant_copy(godot_variant *p_dest, const godot_variant *p_src) { +void GDAPI godot_variant_new_copy(godot_variant *p_dest, const godot_variant *p_src) { Variant *dest = (Variant *)p_dest; Variant *src = (Variant *)p_src; - *dest = *src; + memnew_placement(dest, Variant(*src)); } void GDAPI godot_variant_new_nil(godot_variant *r_dest) { |