diff options
author | Rune <spartacrafter@gmail.com> | 2022-11-08 03:51:20 -0800 |
---|---|---|
committer | Rune <spartacrafter@gmail.com> | 2022-11-13 02:29:21 -0800 |
commit | bce6f1792ebce5de31700e72f57830e5d87b419a (patch) | |
tree | a628d48ba7415eaa906d85afdfa63d2a2d68ed94 /modules/gdscript/gdscript_editor.cpp | |
parent | e25d9281d4f6f0b5b4d972b25cddaa1009ad1d26 (diff) | |
download | redot-engine-bce6f1792ebce5de31700e72f57830e5d87b419a.tar.gz |
GDScript compiler subclass bugfixes
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index f33d1409bc..8a97a1d61d 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -3051,8 +3051,9 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co r_result.type = ScriptLanguage::LOOKUP_RESULT_SCRIPT_LOCATION; r_result.location = base_type.class_type->get_member(p_symbol).get_line(); r_result.class_path = base_type.script_path; - r_result.script = GDScriptCache::get_shallow_script(r_result.class_path); - return OK; + Error err = OK; + r_result.script = GDScriptCache::get_shallow_script(r_result.class_path, err); + return err; } base_type = base_type.class_type->base_type; } |