forked from mirror/openmw-tes3mp
Merge pull request #1495 from akortunov/regressions
Add showsInInventory() check to the ContainerItemModel
This commit is contained in:
commit
9cde3e4408
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ void ContainerItemModel::update()
|
||||||
|
|
||||||
for (MWWorld::ContainerStoreIterator it = store.begin(); it != store.end(); ++it)
|
for (MWWorld::ContainerStoreIterator it = store.begin(); it != store.end(); ++it)
|
||||||
{
|
{
|
||||||
|
if (!(*it).getClass().showsInInventory(*it))
|
||||||
|
continue;
|
||||||
|
|
||||||
std::vector<ItemStack>::iterator itemStack = mItems.begin();
|
std::vector<ItemStack>::iterator itemStack = mItems.begin();
|
||||||
for (; itemStack != mItems.end(); ++itemStack)
|
for (; itemStack != mItems.end(); ++itemStack)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue