summaryrefslogtreecommitdiff
path: root/modules/gdnative/godot/variant.cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-08-06 02:04:06 +0200
committerKarroffel <therzog@mail.de>2017-08-06 02:04:06 +0200
commit76ce18c2909a5a90ce92c82f5569461315029961 (patch)
treefb6609179b7a47d79189814a6497ae06c4f9603f /modules/gdnative/godot/variant.cpp
parenta3a7fb83e645112eb2b7f6620cda9fbaf434311a (diff)
[GDNative] fixed double variant call
This bug got discovered thanks to clang!
Diffstat (limited to 'modules/gdnative/godot/variant.cpp')
-rw-r--r--modules/gdnative/godot/variant.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdnative/godot/variant.cpp b/modules/gdnative/godot/variant.cpp
index 506614583c..d814ef913c 100644
--- a/modules/gdnative/godot/variant.cpp
+++ b/modules/gdnative/godot/variant.cpp
@@ -433,7 +433,6 @@ godot_variant GDAPI godot_variant_call(godot_variant *p_self, const godot_string
Variant *dest = (Variant *)&raw_dest;
Variant::CallError error;
memnew_placement_custom(dest, Variant, Variant(self->call(*method, args, p_argcount, error)));
- *dest = self->call(StringName(*method), args, p_argcount, r_error);
if (r_error) {
r_error->error = (godot_variant_call_error_error)error.error;
r_error->argument = error.argument;