forked from teamnwah/openmw-tes3coop
Some cleanup
This commit is contained in:
parent
9acd4061cc
commit
dde43e8c87
1 changed files with 5 additions and 5 deletions
|
@ -187,11 +187,11 @@ namespace MWWorld
|
||||||
T item;
|
T item;
|
||||||
item.mId = Misc::StringUtils::lowerCase(id);
|
item.mId = Misc::StringUtils::lowerCase(id);
|
||||||
|
|
||||||
// delete from static part of shared
|
// delete from the static part of mShared
|
||||||
typename std::vector<T *>::iterator sharedit = mShared.begin();
|
typename std::vector<T *>::iterator sharedIter = mShared.begin();
|
||||||
for (; sharedit != (mShared.begin()+mStatic.size()); ++sharedit) {
|
for (; sharedIter != (mShared.begin()+mStatic.size()); ++sharedIter) {
|
||||||
if((*sharedit)->mId == item.mId) {
|
if((*sharedIter)->mId == item.mId) {
|
||||||
mShared.erase(sharedit);
|
mShared.erase(sharedIter);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue