forked from teamnwah/openmw-tes3coop
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}");
|
MWBase::Environment::get().getWindowManager()->messageBox(keyName + " #{sKeyUsed}");
|
||||||
unlock(ptr); //Call the function here. because that makes sense.
|
unlock(ptr); //Call the function here. because that makes sense.
|
||||||
// using a key disarms the trap
|
// using a key disarms the trap
|
||||||
ptr.getCellRef().getTrap() = "";
|
ptr.getCellRef().setTrap("");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!needKey || hasKey)
|
if (!needKey || hasKey)
|
||||||
|
|
Loading…
Reference in a new issue