Merge pull request #9294 from karroffel/ptrcall-ref-const-ptr-fix

fixed ptrcall cast for const Ref<T>
This commit is contained in:
Thomas Herzog 2017-06-20 23:11:38 +02:00 committed by GitHub
commit 3c1fd26bb0

View file

@ -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);
}
};