You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix onready vars / vars accessing class members if _ready / _init not present
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user