Fix: off by one error in previous commit

Fixes rB90253ad2e753acde161b38d82bd650d54d3f6581.
This commit is contained in:
Jacques Lucke 2023-01-29 00:13:37 +01:00
parent 52ed8bcb27
commit e497da5fda
1 changed files with 1 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ class LazyFunctionForAnonymousAttributeSetJoin : public lf::LazyFunction {
constexpr int cache_amount = 16;
static std::array<LazyFunctionForAnonymousAttributeSetJoin, cache_amount> cached_functions =
get_cache(std::make_index_sequence<cache_amount>{});
if (amount <= cached_functions.size()) {
if (amount < cached_functions.size()) {
return cached_functions[amount];
}