Set this->list_pos to match this->server */
| 324 | |
| 325 | /** Set this->list_pos to match this->server */ |
| 326 | void UpdateListPos() |
| 327 | { |
| 328 | auto it = std::ranges::find(this->servers, this->server); |
| 329 | if (it == std::end(this->servers)) { |
| 330 | this->list_pos = SLP_INVALID; |
| 331 | } else { |
| 332 | this->list_pos = static_cast<ServerListPosition>(std::distance(std::begin(this->servers), it)); |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | static bool NGameSearchFilter(NetworkGame * const *item, StringFilter &sf) |
| 337 | { |
no test coverage detected