mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 09:49:40 +00:00
Add showsInInventory() check to the ContainerItemModel
This commit is contained in:
parent
ad27e0f945
commit
ea3729790f
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)
|
||||
{
|
||||
if (!(*it).getClass().showsInInventory(*it))
|
||||
continue;
|
||||
|
||||
std::vector<ItemStack>::iterator itemStack = mItems.begin();
|
||||
for (; itemStack != mItems.end(); ++itemStack)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue