Skip to content

Commit

Permalink
Fix gdextension variant type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylgos committed Jun 10, 2023
1 parent 9723077 commit d7eb710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/variant/variant_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ struct VariantTypeConstructor {

_FORCE_INLINE_ static void type_from_variant(void *r_value, void *p_variant) {
// r_value is provided by caller as uninitialized memory
memnew_placement(r_value, T(VariantInternalAccessor<T>::get(reinterpret_cast<Variant *>(p_variant))));
memnew_placement(r_value, T(*reinterpret_cast<Variant *>(p_variant)));
}
};

Expand Down

0 comments on commit d7eb710

Please sign in to comment.