Enable range-for on the player party
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
#include <array>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
#include <boost/iterator/indirect_iterator.hpp>
|
||||
|
||||
#include "vehicle.hpp"
|
||||
#include "creatlist.hpp"
|
||||
#include "item.hpp"
|
||||
@@ -199,6 +202,14 @@ public:
|
||||
|
||||
bool sd_legit(short a, short b);
|
||||
|
||||
auto begin() -> boost::indirect_iterator<decltype(adven)::iterator> {
|
||||
return boost::make_indirect_iterator(adven.begin());
|
||||
}
|
||||
|
||||
auto end() -> boost::indirect_iterator<decltype(adven)::iterator> {
|
||||
return boost::make_indirect_iterator(adven.end());
|
||||
}
|
||||
|
||||
typedef std::vector<cEncNote>::iterator encIter;
|
||||
typedef std::vector<cJournal>::iterator journalIter;
|
||||
typedef std::vector<cConvers>::iterator talkIter;
|
||||
|
Reference in New Issue
Block a user