From e497da5fda3547d794f0fecbbc126d34446661fb Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 29 Jan 2023 00:13:37 +0100 Subject: [PATCH] Fix: off by one error in previous commit Fixes rB90253ad2e753acde161b38d82bd650d54d3f6581. --- source/blender/nodes/intern/geometry_nodes_lazy_function.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc index 8075694edca..1a7f1520b12 100644 --- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc +++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc @@ -1088,7 +1088,7 @@ class LazyFunctionForAnonymousAttributeSetJoin : public lf::LazyFunction { constexpr int cache_amount = 16; static std::array cached_functions = get_cache(std::make_index_sequence{}); - if (amount <= cached_functions.size()) { + if (amount < cached_functions.size()) { return cached_functions[amount]; }