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

Merge branch 'fatstacks' into 'master'

Allow the NAM9 field to be used if COUN is omitted

Closes #7836

See merge request OpenMW/openmw!3889
This commit is contained in:
psi29a 2024-02-22 08:10:59 +00:00
commit 35f547ad7c

View file

@ -30,10 +30,7 @@ namespace ESM
esm.getHNOT(mEnabled, "ENAB"); esm.getHNOT(mEnabled, "ENAB");
if (mVersion <= MaxOldCountFormatVersion) if (mVersion <= MaxOldCountFormatVersion)
{
mRef.mCount = 1;
esm.getHNOT(mRef.mCount, "COUN"); esm.getHNOT(mRef.mCount, "COUN");
}
mPosition = mRef.mPos; mPosition = mRef.mPos;
esm.getHNOT("POS_", mPosition.pos, mPosition.rot); esm.getHNOT("POS_", mPosition.pos, mPosition.rot);