aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herzog2017-06-20 23:11:38 +0200
committerGitHub2017-06-20 23:11:38 +0200
commit3c1fd26bb0c2e97b927343e5488aa6d646e2e27c (patch)
treef26f8399299372281c99911315c5f7926f0c044a
parente80d61038b463a771b0bc07fa4af56890af64485 (diff)
parent40bb90fabdbb98af9235b224d2172e4c1aeeacc9 (diff)
downloadgodot-3c1fd26bb0c2e97b927343e5488aa6d646e2e27c.tar.gz
godot-3c1fd26bb0c2e97b927343e5488aa6d646e2e27c.tar.zst
godot-3c1fd26bb0c2e97b927343e5488aa6d646e2e27c.zip
Merge pull request #9294 from karroffel/ptrcall-ref-const-ptr-fix
fixed ptrcall cast for const Ref<T>
-rw-r--r--core/reference.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reference.h b/core/reference.h
index afc097817..4e2d6c36c 100644
--- a/core/reference.h
+++ b/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);
}
};