Merge pull request #19637 from dragmz/19548
Fix onready vars / vars accessing class members if _ready / _init not present
This commit is contained in:
commit
3f272c6ae6
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
bool GDScriptCompiler::_is_class_member_property(CodeGen &codegen, const StringName &p_name) {
|
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;
|
return false;
|
||||||
|
|
||||||
if (codegen.stack_identifiers.has(p_name))
|
if (codegen.stack_identifiers.has(p_name))
|
||||||
|
|
Loading…
Reference in a new issue