mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-31 06:32:39 +00:00
Important change, https://godbolt.org/z/YjjaaqYsc
This commit is contained in:
parent
897e43ae1e
commit
52e1f32c88
@ -53,20 +53,22 @@ namespace
|
|||||||
|
|
||||||
FilteredDialogueIterator& operator++()
|
FilteredDialogueIterator& operator++()
|
||||||
{
|
{
|
||||||
|
if (mIter == mEndIter)
|
||||||
|
{
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
++mIter;
|
++mIter;
|
||||||
} while (mIter->mType != filter && mIter != mEndIter);
|
} while (mIter != mEndIter && mIter->mType != filter);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
FilteredDialogueIterator operator++(int)
|
FilteredDialogueIterator operator++(int)
|
||||||
{
|
{
|
||||||
FilteredDialogueIterator iter = *this;
|
FilteredDialogueIterator iter = *this;
|
||||||
do
|
++(*this);
|
||||||
{
|
|
||||||
++mIter;
|
|
||||||
} while (mIter->mType != filter && mIter != mEndIter);
|
|
||||||
return iter;
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,12 +76,9 @@ namespace
|
|||||||
{
|
{
|
||||||
while (advance > 0 && mIter != mEndIter)
|
while (advance > 0 && mIter != mEndIter)
|
||||||
{
|
{
|
||||||
++mIter;
|
++(*this);
|
||||||
if (mIter->mType == filter)
|
|
||||||
{
|
|
||||||
--advance;
|
--advance;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user