Fix regression in gdscript initialization
A case was missing when cherry-picking PR #44093 from 4.0 to 3.2 branch.
This commit is contained in:
parent
666e8ca387
commit
e1561a6f29
|
@ -136,7 +136,8 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
|||
} break;
|
||||
case GDScriptParser::DataType::GDSCRIPT: {
|
||||
result.kind = GDScriptDataType::GDSCRIPT;
|
||||
result.script_type = Ref<Script>(p_datatype.script_type).ptr();
|
||||
result.script_type_ref = Ref<Script>(p_datatype.script_type);
|
||||
result.script_type = result.script_type_ref.ptr();
|
||||
result.native_type = result.script_type->get_instance_base_type();
|
||||
} break;
|
||||
case GDScriptParser::DataType::CLASS: {
|
||||
|
|
Loading…
Reference in New Issue