diff --git a/apps/openmw/mwclass/weapon.cpp b/apps/openmw/mwclass/weapon.cpp index 2367a0d7ff..cb394d089f 100644 --- a/apps/openmw/mwclass/weapon.cpp +++ b/apps/openmw/mwclass/weapon.cpp @@ -404,8 +404,8 @@ namespace MWClass { return std::make_pair (2, ""); } - return std::make_pair (1, ""); } + return std::make_pair(1, ""); } return std::make_pair (0, ""); } diff --git a/apps/openmw/mwgui/container.cpp b/apps/openmw/mwgui/container.cpp index 8820467ffa..60cb186e2c 100644 --- a/apps/openmw/mwgui/container.cpp +++ b/apps/openmw/mwgui/container.cpp @@ -201,7 +201,7 @@ namespace MWGui { mPtr = container; - if (!loot) + if (mPtr.getTypeName() == typeid(ESM::NPC).name() && !loot) { // we are stealing stuff MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();