Editor: Doors can't be unlocked
There's a rather nonsensical code branch in saving cell refs like so:
if (!inInventory)
{
int lockLevel = mLockLevel;
if (lockLevel == 0 && mIsLocked)
lockLevel = ZeroLock;
if (lockLevel != 0)
esm.writeHNT("FLTV", lockLevel);
esm.writeHNOCRefId("KNAM", mKey);
esm.writeHNOCRefId("TNAM", mTrap);
}
The problem is, altering the lock value of a locked door is overridden by this, and zero value locks are instead assigned the lock value of INT_MAX. Naturally this is a big problem when trying to do anything with doors.
Edited by Dave Corley