mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-30 15:44:31 +01:00
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user