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

Method Remove

src/script/api/script_list.cpp:86–92  ·  view source on GitHub ↗

* Callback from the list if an item gets removed. */

Source from the content-addressed store, hash-verified

84 * Callback from the list if an item gets removed.
85 */
86 void Remove(SQInteger item)
87 {
88 if (this->IsEnd()) return;
89
90 /* If we remove the 'next' item, skip to the next */
91 if (item == this->item_next) this->FindNext();
92 }
93
94 /**
95 * Attach the sorter to a new list and update internal iterator so it remains valid

Callers 2

RemoveItemMethod · 0.45
SetValueMethod · 0.45

Calls 2

IsEndMethod · 0.95
FindNextMethod · 0.45

Tested by

no test coverage detected