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
commit 3f272c6ae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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