summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zawiejski <dragmz@gmail.com>2018-06-18 23:17:53 +0200
committerMarcin Zawiejski <dragmz@gmail.com>2018-06-18 23:31:48 +0200
commit317dcb084b0da397dfe8dc43c3954d3b9167bee8 (patch)
treef257dc26356b411db5288b364b8cdcb0b42cb5ff
parent41b962fc9c5c4517a1665aa4b0f18d486ac49c6a (diff)
Fix onready vars / vars accessing class members if _ready / _init not present
-rw-r--r--modules/gdscript/gdscript_compiler.cpp2
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))