summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.cpp
diff options
context:
space:
mode:
authorZher Huei Lee <lee.zh.92@gmail.com>2015-12-30 00:23:26 +0000
committerZher Huei Lee <lee.zh.92@gmail.com>2015-12-30 00:23:26 +0000
commit821351be0420c4b3def6b83c287ee7463e6e3506 (patch)
tree607c830456c9642304359a8550c67f060136ddea /modules/gdscript/gd_parser.cpp
parent875bff2c4e95e63c0eeca9d3fbe28bae79095a64 (diff)
added missing onready allocation for subclasses
Fixes #3158
Diffstat (limited to 'modules/gdscript/gd_parser.cpp')
-rw-r--r--modules/gdscript/gd_parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index 912170d2b0..64b7f26e92 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -2081,6 +2081,8 @@ void GDParser::_parse_class(ClassNode *p_class) {
ClassNode *newclass = alloc_node<ClassNode>();
newclass->initializer = alloc_node<BlockNode>();
newclass->initializer->parent_class=newclass;
+ newclass->ready = alloc_node<BlockNode>();
+ newclass->ready->parent_class=newclass;
newclass->name=name;
newclass->owner=p_class;