Fixed bug related to resolving constants in a class, closes #1110

This commit is contained in:
Juan Linietsky 2016-06-28 11:02:53 -03:00
parent 565bb3afcc
commit f4c6640827
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
} else if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) { } else if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) {
//identifier (reference) //identifier (reference)
const ClassNode* cln = static_cast<const ClassNode*>(get_parse_tree()); const ClassNode* cln = current_class;
bool bfn = false; bool bfn = false;
StringName identifier; StringName identifier;
if (_get_completable_identifier(COMPLETION_IDENTIFIER,identifier)) { if (_get_completable_identifier(COMPLETION_IDENTIFIER,identifier)) {