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 /core/math/expression.cpp | |
parent | 709964849fdc0c2cb34e5e851df71a66ee28ba1e (diff) |
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 'core/math/expression.cpp')
-rw-r--r-- | core/math/expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index de7d2d2e2c..0e72b153e4 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1980,7 +1980,7 @@ bool Expression::_execute(const Array &p_inputs, Object *p_instance, Expression: } bool valid; - r_ret = base.get_named(index->name, &valid); + r_ret = base.get_named(index->name, valid); if (!valid) { r_error_str = vformat(RTR("Invalid named index '%s' for base type %s"), String(index->name), Variant::get_type_name(base.get_type())); return true; |