mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
GDExtension: Use correct return pointer for validated calls that return Variant
This commit is contained in:
parent
42425baa59
commit
88b6fee547
@ -234,7 +234,7 @@ public:
|
||||
void *ret_opaque = nullptr;
|
||||
if (r_ret) {
|
||||
VariantInternal::initialize(r_ret, return_value_info.type);
|
||||
ret_opaque = VariantInternal::get_opaque_pointer(r_ret);
|
||||
ret_opaque = r_ret->get_type() == Variant::NIL ? r_ret : VariantInternal::get_opaque_pointer(r_ret);
|
||||
}
|
||||
|
||||
ptrcall(p_object, argptrs, ret_opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user