mirror of
https://github.com/godotengine/godot
synced 2024-09-16 03:17:53 +00:00
Fix onready vars / vars accessing class members if _ready / _init not present
This commit is contained in:
parent
41b962fc9c
commit
317dcb084b
|
@ -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