forked from mirror/openmw-tes3mp
crash fix (hopefully)
This commit is contained in:
parent
6a0cb32b7e
commit
398a7dc65c
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ void ContainerBase::drawItems()
|
||||||
for (std::vector<MWWorld::Ptr>::iterator it=unwantedItems.begin();
|
for (std::vector<MWWorld::Ptr>::iterator it=unwantedItems.begin();
|
||||||
it != unwantedItems.end(); ++it)
|
it != unwantedItems.end(); ++it)
|
||||||
{
|
{
|
||||||
std::vector<MWWorld::Ptr>::iterator found = std::find(unwantedItems.begin(), unwantedItems.end(), *it);
|
std::vector<MWWorld::Ptr>::iterator found = std::find(equippedItems.begin(), equippedItems.end(), *it);
|
||||||
assert(found != unwantedItems.end());
|
assert(found != equippedItems.end());
|
||||||
equippedItems.erase(found);
|
equippedItems.erase(found);
|
||||||
}
|
}
|
||||||
// and add the items that are left (= have the correct category)
|
// and add the items that are left (= have the correct category)
|
||||||
|
|
Loading…
Reference in a new issue