mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Merge pull request #2536 from Capostrophic/pickpocket
[Regression] Fix pickpocket crashes
This commit is contained in:
commit
7b0cf868af
@ -98,7 +98,7 @@ namespace MWGui
|
|||||||
if (pickpocket.finish())
|
if (pickpocket.finish())
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getMechanicsManager()->commitCrime(
|
MWBase::Environment::get().getMechanicsManager()->commitCrime(
|
||||||
player, mActor, MWBase::MechanicsManager::OT_Pickpocket, 0, true);
|
player, mActor, MWBase::MechanicsManager::OT_Pickpocket, std::string(), 0, true);
|
||||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Container);
|
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Container);
|
||||||
mPickpocketDetected = true;
|
mPickpocketDetected = true;
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ namespace MWGui
|
|||||||
if (pickpocket.pick(item, count))
|
if (pickpocket.pick(item, count))
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getMechanicsManager()->commitCrime(
|
MWBase::Environment::get().getMechanicsManager()->commitCrime(
|
||||||
player, mActor, MWBase::MechanicsManager::OT_Pickpocket, 0, true);
|
player, mActor, MWBase::MechanicsManager::OT_Pickpocket, std::string(), 0, true);
|
||||||
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Container);
|
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_Container);
|
||||||
mPickpocketDetected = true;
|
mPickpocketDetected = true;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user