Merge pull request #9294 from karroffel/ptrcall-ref-const-ptr-fix
fixed ptrcall cast for const Ref<T>
This commit is contained in:
commit
3c1fd26bb0
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ struct PtrToArg<const Ref<T> &> {
|
|||
|
||||
_FORCE_INLINE_ static Ref<T> convert(const void *p_ptr) {
|
||||
|
||||
return Ref<T>(reinterpret_cast<const T *>(p_ptr));
|
||||
return Ref<T>((T *)p_ptr);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue