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:
PouleyKetchoupp 2020-12-09 17:11:03 -07:00
parent 666e8ca387
commit e1561a6f29
1 changed files with 2 additions and 1 deletions

View File

@ -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: {