We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c24325 commit 098e579Copy full SHA for 098e579
src/Layers/xrRender/PSLibrary.cpp
@@ -273,8 +273,8 @@ void CPSLibrary::Reload()
273
274
using PS::CPGDef;
275
276
-CPGDef const* const* CPSLibrary::particles_group_begin() const { return (m_PGDs.size() ? &*m_PGDs.begin() : 0); }
277
-CPGDef const* const* CPSLibrary::particles_group_end() const { return (m_PGDs.size() ? &*m_PGDs.end() : 0); }
+CPGDef const* const* CPSLibrary::particles_group_begin() const { return (m_PGDs.size() ? &m_PGDs.front() : 0); }
+CPGDef const* const* CPSLibrary::particles_group_end() const { return (m_PGDs.size() ? &m_PGDs.back() : 0); }
278
void CPSLibrary::particles_group_next(PS::CPGDef const* const*& iterator) const
279
{
280
VERIFY(iterator);
0 commit comments