From 3cadb5918f6889e898e2ebdce25b69a61361fe51 Mon Sep 17 00:00:00 2001
From: scrawl <scrawl@baseoftrash.de>
Date: Fri, 17 May 2013 14:11:02 +0200
Subject: [PATCH] Fix containers showing random items from my commit earlier

---
 apps/openmw/mwgui/container.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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