Fix disarming a trap when key is used (Fixes #1556)

deque
scrawl 11 years ago
parent e5254ff8ef
commit 869fa08a32

@ -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…
Cancel
Save