diff options
author | Rune <spartacrafter@gmail.com> | 2022-11-15 22:20:49 -0600 |
---|---|---|
committer | Rune <spartacrafter@gmail.com> | 2022-11-15 22:20:49 -0600 |
commit | 61df8f448479b20db1d04372b6b2f88c38ee11cc (patch) | |
tree | 02f9f6cb466e1f0638fdfa3e2cf9f3ada93d02f7 /modules | |
parent | 963ffd8b944db768a9b7d09eeec025907f50843c (diff) |
GDScript Compiler: regression fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index aa1356d8c0..824625b745 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -133,6 +133,7 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D if (script.is_null()) { _set_error(vformat(R"(Could not find class "%s" in "%s".)", p_datatype.class_type->fqcn, p_datatype.script_path), nullptr); + return GDScriptDataType(); } else { // Only hold a strong reference if the owner of the element qualified with this type is not local, to avoid cyclic references (leaks). // TODO: Might lead to use after free if script_type is a subclass and is used after its parent is freed. |