forked from teamnwah/openmw-tes3coop
Merge pull request #1577
This commit is contained in:
commit
9cee439e37
1 changed files with 5 additions and 0 deletions
|
@ -2446,6 +2446,11 @@ namespace MWWorld
|
|||
if (ptr.getRefData().isDeleted())
|
||||
return true;
|
||||
|
||||
// we should not sell ingrediends from owned organic containers
|
||||
MWWorld::LiveCellRef<ESM::Container>* ref = ptr.get<ESM::Container>();
|
||||
if (ref && (ref->mBase->mFlags & ESM::Container::Organic))
|
||||
return true;
|
||||
|
||||
if (Misc::StringUtils::ciEqual(ptr.getCellRef().getOwner(), mOwner.getCellRef().getRefId()))
|
||||
mOut.push_back(ptr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue