mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +00:00
Fix operator ++ for OutputTransformIterator
This commit is contained in:
parent
c68e64a2a7
commit
a0ed981a7c
1 changed files with 12 additions and 5 deletions
|
@ -81,21 +81,28 @@ namespace DetourNavigator
|
|||
return *this;
|
||||
}
|
||||
|
||||
OutputTransformIterator& operator ++(int)
|
||||
OutputTransformIterator& operator ++()
|
||||
{
|
||||
mImpl++;
|
||||
++mImpl.get();
|
||||
return *this;
|
||||
}
|
||||
|
||||
OutputTransformIterator operator ++(int)
|
||||
{
|
||||
const auto copy = *this;
|
||||
++(*this);
|
||||
return copy;
|
||||
}
|
||||
|
||||
OutputTransformIterator& operator =(const osg::Vec3f& value)
|
||||
{
|
||||
*mImpl = fromNavMeshCoordinates(mSettings, value);
|
||||
*mImpl.get() = fromNavMeshCoordinates(mSettings, value);
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
OutputIterator& mImpl;
|
||||
const Settings& mSettings;
|
||||
std::reference_wrapper<OutputIterator> mImpl;
|
||||
std::reference_wrapper<const Settings> mSettings;
|
||||
};
|
||||
|
||||
inline void initNavMeshQuery(dtNavMeshQuery& value, const dtNavMesh& navMesh, const int maxNodes)
|
||||
|
|
Loading…
Reference in a new issue