summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-28 11:02:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-28 11:02:53 -0300
commitf4c66408276c5eff471d9e945eb02b36e7c71395 (patch)
treec710166c1f3135f450ce7ccdd4a22b4dd9ab6edd /modules/gdscript/gd_parser.cpp
parent565bb3afcc207aea6608bb119e21c6833f1b87b3 (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.cpp2
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)) {