diff options
author | reduz <reduzio@gmail.com> | 2020-11-06 22:29:22 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2020-11-07 15:16:15 -0300 |
commit | 05de7ce6caf441f8b64dd60d1837835f10d06520 (patch) | |
tree | 0c33e76f2effa5dcb48a7443ae888c20cbda1e44 /modules/gdscript/gdscript_analyzer.cpp | |
parent | 709964849fdc0c2cb34e5e851df71a66ee28ba1e (diff) | |
download | redot-engine-05de7ce6caf441f8b64dd60d1837835f10d06520.tar.gz |
Refactored variant setters/getters
-Discern between named, indexed and keyed
-Get direct access to functions for typed GDScript and GDNative bindings
-Small changes to some classes in order to work with the new setget binder
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index ab4edb04b9..e152bfb1eb 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -2438,7 +2438,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri if (p_subscript->base->is_constant) { // Just try to get it. bool valid = false; - Variant value = p_subscript->base->reduced_value.get_named(p_subscript->attribute->name, &valid); + Variant value = p_subscript->base->reduced_value.get_named(p_subscript->attribute->name, valid); if (!valid) { push_error(vformat(R"(Cannot get member "%s" from "%s".)", p_subscript->attribute->name, p_subscript->base->reduced_value), p_subscript->index); } else { |