MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RemoveList

Method RemoveList

src/script/api/script_list.cpp:673–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673void ScriptList::RemoveList(ScriptList *list)
674{
675 this->modifications++;
676
677 if (list == this) {
678 this->Clear();
679 } else {
680 for (const auto &item : list->items) {
681 this->RemoveItem(item.first);
682 }
683 }
684}
685
686void ScriptList::KeepAboveValue(SQInteger value)
687{

Callers 1

KeepListMethod · 0.95

Calls 2

ClearMethod · 0.95
RemoveItemMethod · 0.95

Tested by

no test coverage detected