mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 14:57:59 +03:00
Fix disarming a trap when key is used (Fixes #1556)
This commit is contained in:
parent
e5254ff8ef
commit
869fa08a32
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ namespace MWClass
|
|||
MWBase::Environment::get().getWindowManager()->messageBox(keyName + " #{sKeyUsed}");
|
||||
unlock(ptr); //Call the function here. because that makes sense.
|
||||
// using a key disarms the trap
|
||||
ptr.getCellRef().getTrap() = "";
|
||||
ptr.getCellRef().setTrap("");
|
||||
}
|
||||
|
||||
if (!needKey || hasKey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue