1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Merge pull request #1495 from akortunov/regressions

Add showsInInventory() check to the ContainerItemModel
This commit is contained in:
scrawl 2017-10-08 14:09:59 +00:00 committed by GitHub
commit 9cde3e4408

View file

@ -142,6 +142,9 @@ void ContainerItemModel::update()
for (MWWorld::ContainerStoreIterator it = store.begin(); it != store.end(); ++it)
{
if (!(*it).getClass().showsInInventory(*it))
continue;
std::vector<ItemStack>::iterator itemStack = mItems.begin();
for (; itemStack != mItems.end(); ++itemStack)
{