From f64bc3c7efef603046daf51071bb94c2ce3b411f Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 6 Jun 2016 23:50:22 +0200 Subject: [PATCH] Pass the victim to commitCrime on pickpocket detection (Fixes #3424) --- 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 e1b5c120a..00df18e1d 100644 --- a/apps/openmw/mwgui/container.cpp +++ b/apps/openmw/mwgui/container.cpp @@ -271,7 +271,7 @@ namespace MWGui { int value = item.mBase.getClass().getValue(item.mBase) * count; MWBase::Environment::get().getMechanicsManager()->commitCrime( - player, MWWorld::Ptr(), MWBase::MechanicsManager::OT_Theft, value, true); + player, mPtr, MWBase::MechanicsManager::OT_Theft, value, true); MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Container); mPickpocketDetected = true; return false;