From b881d8ef5c4295022ba7a420972dc9e49fc6dd6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Mon, 22 Dec 2025 15:09:50 +0100 Subject: [PATCH] Fix 9a47f53: Incorrect filter for ScriptList::KeepBetweenValue (#14957) --- src/script/api/script_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index fa29b3e30c..8f102ff410 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -718,7 +718,7 @@ bool ScriptList::KeepBelowValue(SQInteger value) bool ScriptList::KeepBetweenValue(SQInteger start, SQInteger end) { - return this->RemoveItems([&](const SQInteger &, const SQInteger &v) { return v <= start && v >= end; }); + return this->RemoveItems([&](const SQInteger &, const SQInteger &v) { return v <= start || v >= end; }); } bool ScriptList::KeepValue(SQInteger value)