Skip to content

Commit

Permalink
Merge pull request #70131 from rune-scape/preload-type-regression
Browse files Browse the repository at this point in the history
Fix preload type regression
  • Loading branch information
akien-mga authored Dec 15, 2022
2 parents c4b4e69 + 17e03c2 commit f18f274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4027,7 +4027,8 @@ GDScriptParser::DataType GDScriptAnalyzer::type_from_variant(const Variant &p_va
found = found->get_member(E).m_class;
}

result = found->get_datatype();
result.class_type = found;
result.script_path = ref->get_parser()->script_path;
} else {
result.kind = GDScriptParser::DataType::SCRIPT;
result.native_type = scr->get_instance_base_type();
Expand Down

0 comments on commit f18f274

Please sign in to comment.