[GDNative] fixed double variant call
This bug got discovered thanks to clang!
This commit is contained in:
parent
a3a7fb83e6
commit
76ce18c290
@ -433,7 +433,6 @@ godot_variant GDAPI godot_variant_call(godot_variant *p_self, const godot_string
|
|||||||
Variant *dest = (Variant *)&raw_dest;
|
Variant *dest = (Variant *)&raw_dest;
|
||||||
Variant::CallError error;
|
Variant::CallError error;
|
||||||
memnew_placement_custom(dest, Variant, Variant(self->call(*method, args, p_argcount, 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) {
|
if (r_error) {
|
||||||
r_error->error = (godot_variant_call_error_error)error.error;
|
r_error->error = (godot_variant_call_error_error)error.error;
|
||||||
r_error->argument = error.argument;
|
r_error->argument = error.argument;
|
||||||
|
Loading…
Reference in New Issue
Block a user