diff options
author | Marcin Zawiejski <dragmz@gmail.com> | 2018-06-18 23:17:53 +0200 |
---|---|---|
committer | Marcin Zawiejski <dragmz@gmail.com> | 2018-06-18 23:31:48 +0200 |
commit | 317dcb084b0da397dfe8dc43c3954d3b9167bee8 (patch) | |
tree | f257dc26356b411db5288b364b8cdcb0b42cb5ff /modules/gdscript | |
parent | 41b962fc9c5c4517a1665aa4b0f18d486ac49c6a (diff) |
Fix onready vars / vars accessing class members if _ready / _init not present
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 5c834966c5..85c36647a1 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -34,7 +34,7 @@ bool GDScriptCompiler::_is_class_member_property(CodeGen &codegen, const StringName &p_name) { - if (!codegen.function_node || codegen.function_node->_static) + if (codegen.function_node && codegen.function_node->_static) return false; if (codegen.stack_identifiers.has(p_name)) |