mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:53:52 +00:00
Pass the victim to commitCrime on pickpocket detection (Fixes #3424)
This commit is contained in:
parent
a1f323f528
commit
f64bc3c7ef
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue