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

This commit is contained in:
scrawl 2014-06-26 14:30:08 +02:00
parent e5254ff8ef
commit 869fa08a32

View file

@ -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)