소스 검색

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

fixed ptrcall cast for const Ref<T>
Thomas Herzog 8 년 전
부모
커밋
3c1fd26bb0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/reference.h

+ 1 - 1
core/reference.h

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