From 76ce18c2909a5a90ce92c82f5569461315029961 Mon Sep 17 00:00:00 2001 From: Karroffel Date: Sun, 6 Aug 2017 02:04:06 +0200 Subject: [PATCH] [GDNative] fixed double variant call This bug got discovered thanks to clang! --- modules/gdnative/godot/variant.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/gdnative/godot/variant.cpp b/modules/gdnative/godot/variant.cpp index 506614583c8..d814ef913c5 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;