added missing onready allocation for subclasses

Fixes #3158
This commit is contained in:
Zher Huei Lee 2015-12-30 00:23:26 +00:00
parent 875bff2c4e
commit 821351be04

View File

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