diff --git a/apps/openmw/mwgui/container.cpp b/apps/openmw/mwgui/container.cpp index bdb06dd26e..20bef98b9a 100644 --- a/apps/openmw/mwgui/container.cpp +++ b/apps/openmw/mwgui/container.cpp @@ -239,8 +239,8 @@ void ContainerBase::drawItems() for (std::vector::iterator it=unwantedItems.begin(); it != unwantedItems.end(); ++it) { - std::vector::iterator found = std::find(unwantedItems.begin(), unwantedItems.end(), *it); - assert(found != unwantedItems.end()); + std::vector::iterator found = std::find(equippedItems.begin(), equippedItems.end(), *it); + assert(found != equippedItems.end()); equippedItems.erase(found); } // and add the items that are left (= have the correct category)