1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #19637 from dragmz/19548

Fix onready vars / vars accessing class members if _ready / _init not present
This commit is contained in:
Max Hilbrunner
2018-07-05 04:15:47 +02:00
committed by GitHub

View File

@@ -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))