Skip to content

Commit

Permalink
Make sure to return result from Object::call() in Mixin.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Xrayez committed Aug 5, 2021
1 parent be95465 commit c3cb239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/script/mixin_script/mixin_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ Variant Mixin::call(const StringName &p_method, const Variant **p_args, int p_ar
// The following allows to call `Mixin.free()`.
// This is not strictly needed because Mixin objects should not be instantiated directly,
// and doing so is discouraged, but this can make debug builds more robust for fuzz testing.
Object::call(p_method, p_args, p_argcount, r_error);
return Object::call(p_method, p_args, p_argcount, r_error);
#endif
return Variant();
}
Expand Down

0 comments on commit c3cb239

Please sign in to comment.