summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorHenrik Andersson <henke@henkeandersson.se>2017-08-26 17:10:58 +0200
committerHenrik Andersson <henke@henkeandersson.se>2017-08-26 18:59:37 +0200
commit3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7 (patch)
tree00e69e0866460666d4f866f1701b4c3cad02fabf /platform
parentdd7145b778ea4884fd52f5efaf79dc55375c8465 (diff)
downloadredot-engine-3cd3c1da5f965d6cc55134ac812a8ea0fd0dcdd7.tar.gz
Fix refactored Object::cast_to in NO_SAFE_CAST branch
Diffstat (limited to 'platform')
-rw-r--r--platform/android/java_class_wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/java_class_wrapper.cpp b/platform/android/java_class_wrapper.cpp
index 5693195bfa..ffd9150ba4 100644
--- a/platform/android/java_class_wrapper.cpp
+++ b/platform/android/java_class_wrapper.cpp
@@ -112,7 +112,7 @@ bool JavaClass::_call_method(JavaObject *p_instance, const StringName &p_method,
Ref<Reference> ref = *p_args[i];
if (!ref.is_null()) {
- if (Object::cast_to<JavaObject>(ref)) {
+ if (Object::cast_to<JavaObject>(ref.ptr())) {
Ref<JavaObject> jo = ref;
//could be faster