mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-28 20:06:41 +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;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputTransformIterator& operator ++(int)
|
OutputTransformIterator& operator ++()
|
||||||
{
|
{
|
||||||
mImpl++;
|
++mImpl.get();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OutputTransformIterator operator ++(int)
|
||||||
|
{
|
||||||
|
const auto copy = *this;
|
||||||
|
++(*this);
|
||||||
|
return copy;
|
||||||
|
}
|
||||||
|
|
||||||
OutputTransformIterator& operator =(const osg::Vec3f& value)
|
OutputTransformIterator& operator =(const osg::Vec3f& value)
|
||||||
{
|
{
|
||||||
*mImpl = fromNavMeshCoordinates(mSettings, value);
|
*mImpl.get() = fromNavMeshCoordinates(mSettings, value);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
OutputIterator& mImpl;
|
std::reference_wrapper<OutputIterator> mImpl;
|
||||||
const Settings& mSettings;
|
std::reference_wrapper<const Settings> mSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void initNavMeshQuery(dtNavMeshQuery& value, const dtNavMesh& navMesh, const int maxNodes)
|
inline void initNavMeshQuery(dtNavMeshQuery& value, const dtNavMesh& navMesh, const int maxNodes)
|
||||||
|
|
Loading…
Reference in a new issue