diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-07-05 04:15:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 04:15:47 +0200 |
commit | 3f272c6ae65bd608c3f6412aebced29cfcb813e7 (patch) | |
tree | 508a8dc42a835d04094ca97a2bd46908bd29b4c5 /modules | |
parent | 16f1a773192c46cc86c3fbe549c917fd8927faf6 (diff) | |
parent | 317dcb084b0da397dfe8dc43c3954d3b9167bee8 (diff) |
Merge pull request #19637 from dragmz/19548
Fix onready vars / vars accessing class members if _ready / _init not present
Diffstat (limited to 'modules')
-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)) |