You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix implicit GDScript Reference inheritance
This commit is contained in:
@@ -145,11 +145,8 @@ Variant GDScript::_new(const Variant** p_args,int p_argcount,Variant::CallError&
|
||||
_baseptr=_baseptr->_base;
|
||||
}
|
||||
|
||||
if (_baseptr->native.ptr()) {
|
||||
owner=_baseptr->native->instance();
|
||||
} else {
|
||||
owner=memnew( Reference ); //by default, no base means use reference
|
||||
}
|
||||
ERR_FAIL_COND_V(_baseptr->native.is_null(), Variant());
|
||||
owner=_baseptr->native->instance();
|
||||
|
||||
Reference *r=owner->cast_to<Reference>();
|
||||
if (r) {
|
||||
|
||||
Reference in New Issue
Block a user