mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 12:36:40 +00:00
Fix pickpocketing sneaking stance check
This commit is contained in:
parent
899966f0d3
commit
cc6e4ad215
1 changed files with 1 additions and 1 deletions
|
@ -904,7 +904,7 @@ namespace MWClass
|
|||
}
|
||||
else if (!stats.getAiSequence().isInCombat())
|
||||
{
|
||||
if(getCreatureStats(actor).getStance(MWMechanics::CreatureStats::Stance_Sneak) || stats.getKnockedDown())
|
||||
if (stats.getKnockedDown() || MWBase::Environment::get().getMechanicsManager()->isSneaking(actor))
|
||||
return std::shared_ptr<MWWorld::Action>(new MWWorld::ActionOpen(ptr)); // stealing
|
||||
|
||||
// Can't talk to werewolves
|
||||
|
|
Loading…
Reference in a new issue