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)