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

Method Clear

src/script/api/script_list.cpp:416–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void ScriptList::Clear()
417{
418 this->modifications++;
419
420 this->items.clear();
421 this->values.clear();
422 this->sorter->End();
423}
424
425void ScriptList::AddItem(SQInteger item, SQInteger value)
426{

Callers 2

RemoveListMethod · 0.95
DoLoadFunction · 0.45

Calls 2

clearMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected