Merge pull request #1577

sol2-server-rewrite
scrawl 7 years ago
commit 9cee439e37
No known key found for this signature in database
GPG Key ID: 2E6CC3676024C402

@ -2446,6 +2446,11 @@ namespace MWWorld
if (ptr.getRefData().isDeleted()) if (ptr.getRefData().isDeleted())
return true; 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())) if (Misc::StringUtils::ciEqual(ptr.getCellRef().getOwner(), mOwner.getCellRef().getRefId()))
mOut.push_back(ptr); mOut.push_back(ptr);

Loading…
Cancel
Save