From d6ac8cfecabb41063905f4c02cb8c7978c6eb71e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 8 Oct 2024 14:26:06 -0500 Subject: [PATCH] fix --- repertory/librepertory/include/database/db_common.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/include/database/db_common.hpp b/repertory/librepertory/include/database/db_common.hpp index 2e6b0c9a..e2594379 100644 --- a/repertory/librepertory/include/database/db_common.hpp +++ b/repertory/librepertory/include/database/db_common.hpp @@ -377,7 +377,8 @@ struct db_comp_next_t final { value, }); - ctx->where_values.push_back(&value); + ctx->where_values.push_back( + &std::get(*std::prev(owner->actions.end())).value); return wn_t{ ctx, @@ -415,7 +416,8 @@ struct db_comp_next_limit_t final { value, }); - ctx->where_values.push_back(&value); + ctx->where_values.push_back( + &std::get(*std::prev(owner->actions.end())).value); return wn_t{ ctx,