mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:15:41 +00:00
Don't unlock unlocked objects now that unlock is no longer idempotent
This commit is contained in:
parent
b62b5f363e
commit
24c1909d52
2 changed files with 3 additions and 3 deletions
|
@ -954,9 +954,9 @@ namespace MWMechanics
|
|||
|
||||
if (caster == getPlayer())
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicOpenSuccess}");
|
||||
}
|
||||
target.getCellRef().unlock();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MWBase::Environment::get().getSoundManager()->playSound3D(
|
||||
|
|
|
@ -366,7 +366,7 @@ namespace MWScript
|
|||
void execute(Interpreter::Runtime& runtime) override
|
||||
{
|
||||
MWWorld::Ptr ptr = R()(runtime);
|
||||
|
||||
if (ptr.getCellRef().isLocked())
|
||||
ptr.getCellRef().unlock();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue