1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

Fix containers showing random items from my commit earlier

This commit is contained in:
scrawl 2013-05-17 14:11:02 +02:00
parent ca81335319
commit 3cadb5918f

View File

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