mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Fix infinite loop in addToLevList
This commit is contained in:
parent
489addf772
commit
8e4e4e5e38
@ -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…
x
Reference in New Issue
Block a user