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

Method FindNext

src/script/api/script_list.cpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 void FindNext() override
251 {
252 this->item_next = std::nullopt;
253 if (this->item_iter == this->list->items.end()) {
254 this->has_no_more_items = true;
255 return;
256 }
257 ++this->item_iter;
258 if (this->item_iter != this->list->items.end()) this->item_next = this->item_iter->first;
259 }
260
261 void RetargetIterator() override
262 {

Callers 3

BeginMethod · 0.95
NextMethod · 0.45
RemoveMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected