1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:23:54 +00:00

Ignore traps of initially unlocked refs with assigned keys

This commit is contained in:
Capostrophic 2020-04-14 17:49:03 +03:00
parent 5dc8da5f67
commit bbed9a70c5

View file

@ -130,7 +130,10 @@ void ESM::CellRef::loadData(ESMReader &esm, bool &isDeleted)
} }
if (mLockLevel == 0 && !mKey.empty()) if (mLockLevel == 0 && !mKey.empty())
{
mLockLevel = UnbreakableLock; mLockLevel = UnbreakableLock;
mTrap.clear();
}
} }
void ESM::CellRef::save (ESMWriter &esm, bool wideRefNum, bool inInventory, bool isDeleted) const void ESM::CellRef::save (ESMWriter &esm, bool wideRefNum, bool inInventory, bool isDeleted) const