forked from mirror/openmw-tes3mp
Fix infinite loop in addToLevList
This commit is contained in:
parent
489addf772
commit
8e4e4e5e38
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ namespace
|
||||||
|
|
||||||
void addToLevList(ESM::LevelledListBase* list, const std::string& itemId, int level)
|
void addToLevList(ESM::LevelledListBase* list, const std::string& itemId, int level)
|
||||||
{
|
{
|
||||||
for (std::vector<ESM::LevelledListBase::LevelItem>::iterator it = list->mList.begin(); it != list->mList.end();)
|
for (std::vector<ESM::LevelledListBase::LevelItem>::iterator it = list->mList.begin(); it != list->mList.end(); ++it)
|
||||||
{
|
{
|
||||||
if (it->mLevel == level && itemId == it->mId)
|
if (it->mLevel == level && itemId == it->mId)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue