mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 11:39:42 +00:00
Actually increment iterators to be erased.
This commit is contained in:
parent
e92fb245c6
commit
5ec2ddb4a0
1 changed files with 2 additions and 2 deletions
|
@ -598,7 +598,7 @@ namespace Shader
|
|||
for (auto itr = writableStateSet->getUniformList().begin(); itr != writableStateSet->getUniformList().end();)
|
||||
{
|
||||
if (addedState->hasUniform(itr->first))
|
||||
writableStateSet->getUniformList().erase(itr);
|
||||
writableStateSet->getUniformList().erase(itr++);
|
||||
else
|
||||
++itr;
|
||||
}
|
||||
|
@ -606,7 +606,7 @@ namespace Shader
|
|||
for (auto itr = writableStateSet->getModeList().begin(); itr != writableStateSet->getModeList().end();)
|
||||
{
|
||||
if (addedState->hasMode(itr->first))
|
||||
writableStateSet->getModeList().erase(itr);
|
||||
writableStateSet->getModeList().erase(itr++);
|
||||
else
|
||||
++itr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue