Pass ranges::subrange to reactor_read_n

This commit is contained in:
Kp 2022-12-31 16:21:47 +00:00
parent 299c4e6300
commit 41184654e8
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#include <physfs.h>
#include "backports-ranges.h"
#include "fwd-object.h"
#include "pack.h"
#include "fwd-robot.h"
@ -104,7 +105,7 @@ extern unsigned Num_reactors;
/*
* reads n reactor structs from a PHYSFS_File
*/
void reactor_read_n(PHYSFS_File *fp, partial_range_t<reactor *> r);
void reactor_read_n(PHYSFS_File *fp, ranges::subrange<reactor *> r);
#endif
extern std::array<reactor, MAX_REACTORS> Reactors;

View file

@ -553,7 +553,7 @@ void special_reactor_stuff()
/*
* reads n reactor structs from a PHYSFS_File
*/
void reactor_read_n(PHYSFS_File *fp, partial_range_t<reactor *> r)
void reactor_read_n(PHYSFS_File *fp, ranges::subrange<reactor *> r)
{
range_for (auto &i, r)
{