mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Fixed bug related to resolving constants in a class, closes #1110
(cherry picked from commit f4c6640827
)
This commit is contained in:

committed by
Rémi Verschelde

parent
dffa1da012
commit
eaca35adfe
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user