1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-04 09:09:42 +00:00

Merge pull request #1577

This commit is contained in:
scrawl 2017-12-08 20:00:58 +00:00
commit 9cee439e37
No known key found for this signature in database
GPG key ID: 2E6CC3676024C402

View file

@ -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);