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

Method RemoveValue

src/script/api/script_list.cpp:605–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void ScriptList::RemoveValue(SQInteger value)
606{
607 this->modifications++;
608
609 for (ScriptListMap::iterator next_iter, iter = this->items.begin(); iter != this->items.end(); iter = next_iter) {
610 next_iter = std::next(iter);
611 if (iter->second == value) this->RemoveItem(iter->first);
612 }
613}
614
615void ScriptList::RemoveTop(SQInteger count)
616{

Callers

nothing calls this directly

Calls 3

RemoveItemMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected