|
|
|
@ -15,8 +15,7 @@ namespace ESM
|
|
|
|
|
mDoorState = 0;
|
|
|
|
|
esm.getHNOT(mDoorState, "ANIM");
|
|
|
|
|
if (mDoorState < 0 || mDoorState > 2)
|
|
|
|
|
Log(Debug::Warning) << "Dropping invalid door state (" << mDoorState << ") for door \"" << mRef.mRefID
|
|
|
|
|
<< "\"";
|
|
|
|
|
Log(Debug::Warning) << "Dropping invalid door state (" << mDoorState << ") for door " << mRef.mRefID;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DoorState::save(ESMWriter& esm, bool inInventory) const
|
|
|
|
@ -25,8 +24,7 @@ namespace ESM
|
|
|
|
|
|
|
|
|
|
if (mDoorState < 0 || mDoorState > 2)
|
|
|
|
|
{
|
|
|
|
|
Log(Debug::Warning) << "Dropping invalid door state (" << mDoorState << ") for door \"" << mRef.mRefID
|
|
|
|
|
<< "\"";
|
|
|
|
|
Log(Debug::Warning) << "Dropping invalid door state (" << mDoorState << ") for door " << mRef.mRefID;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|