Pass std::ranges::subrange to find_hli_entry

This commit is contained in:
Kp 2022-10-09 23:15:21 +00:00
parent 6ca3a1ba99
commit 31b2f1399c
1 changed files with 1 additions and 1 deletions

View File

@ -1271,7 +1271,7 @@ namespace {
* pointer to end(). The caller must check that the first unused
* element is not end().
*/
static std::array<std::array<hli, MAX_MISSIONS>::pointer, 2> find_hli_entry(const partial_range_t<hli *> &r, const Mission_path &m)
static std::array<std::array<hli, MAX_MISSIONS>::pointer, 2> find_hli_entry(const std::ranges::subrange<hli *> r, const Mission_path &m)
{
const auto mission_filename = m.filename;
const auto mission_length = std::distance(mission_filename, m.path.end());