mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix refactored Object::cast_to in NO_SAFE_CAST branch
This commit is contained in:
parent
dd7145b778
commit
3cd3c1da5f
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue