1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Add missing Organic flag check for herbalism

This commit is contained in:
Andrei Kortunov 2019-05-04 12:36:58 +04:00
parent 861d41f4a4
commit c01153569d

View file

@ -1990,9 +1990,7 @@ namespace MWRender
mObjectRoot->accept(visitor); mObjectRoot->accept(visitor);
} }
if (ptr.getTypeName() == typeid(ESM::Container).name() && if (ptr.getRefData().getCustomData() != nullptr && canBeHarvested())
SceneUtil::hasUserDescription(mObjectRoot, Constants::HerbalismLabel) &&
ptr.getRefData().getCustomData() != nullptr)
{ {
const MWWorld::ContainerStore& store = ptr.getClass().getContainerStore(ptr); const MWWorld::ContainerStore& store = ptr.getClass().getContainerStore(ptr);
if (!store.hasVisibleItems()) if (!store.hasVisibleItems())