diff options
author | rune-scape <allie.smith.epic@gmail.com> | 2022-12-15 16:46:15 -0500 |
---|---|---|
committer | rune-scape <allie.smith.epic@gmail.com> | 2022-12-15 16:47:13 -0500 |
commit | 17e03c29d68f450634a8b8dcd2f2a46555d7a3d3 (patch) | |
tree | f02199fd872f16eee77875cd0fd743e38c813f4d /modules/gdscript | |
parent | 47ef0549ee490bca066ac00587076f123d973a55 (diff) |
Fix preload type regression
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 9ec53b2b66..5e2eefff0b 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -4026,7 +4026,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(); |