Pass the victim to commitCrime on pickpocket detection (Fixes #3424)

coverity_scan^2
scrawl 9 years ago
parent a1f323f528
commit f64bc3c7ef

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

Loading…
Cancel
Save