diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 11:02:53 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 11:02:53 -0300 |
commit | f4c66408276c5eff471d9e945eb02b36e7c71395 (patch) | |
tree | c710166c1f3135f450ce7ccdd4a22b4dd9ab6edd /modules/gdscript/gd_parser.cpp | |
parent | 565bb3afcc207aea6608bb119e21c6833f1b87b3 (diff) |
Fixed bug related to resolving constants in a class, closes #1110
Diffstat (limited to 'modules/gdscript/gd_parser.cpp')
-rw-r--r-- | modules/gdscript/gd_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index 3ef42f81a4..e83bd3d21e 100644 --- a/modules/gdscript/gd_parser.cpp +++ b/modules/gdscript/gd_parser.cpp @@ -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) { //identifier (reference) - const ClassNode* cln = static_cast<const ClassNode*>(get_parse_tree()); + const ClassNode* cln = current_class; bool bfn = false; StringName identifier; if (_get_completable_identifier(COMPLETION_IDENTIFIER,identifier)) { |