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

Method KeepList

src/script/api/script_list.cpp:740–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void ScriptList::KeepList(ScriptList *list)
741{
742 if (list == this) return;
743
744 this->modifications++;
745
746 ScriptList tmp;
747 tmp.AddList(this);
748 tmp.RemoveList(list);
749 this->RemoveList(&tmp);
750}
751
752SQInteger ScriptList::_get(HSQUIRRELVM vm)
753{

Callers

nothing calls this directly

Calls 2

RemoveListMethod · 0.95
AddListMethod · 0.80

Tested by

no test coverage detected