Pass std::ranges::subrange to find_hli_entry
This commit is contained in:
parent
6ca3a1ba99
commit
31b2f1399c
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue