1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 06:29:56 +00:00

Fix(Land): Restore vanilla behavior of ignoring LAND subrecords which

are not flagged to actually exist
This commit is contained in:
Dave Corley 2023-12-10 12:24:36 -06:00
parent ad135e3b95
commit 51df924d37

View file

@ -101,23 +101,28 @@ namespace ESM
{
case fourCC("VNML"):
esm.skipHSub();
mDataTypes |= DATA_VNML;
if (mFlags & DATA_VNML)
mDataTypes |= DATA_VNML;
break;
case fourCC("VHGT"):
esm.skipHSub();
mDataTypes |= DATA_VHGT;
if (mFlags & DATA_VHGT)
mDataTypes |= DATA_VHGT;
break;
case fourCC("WNAM"):
esm.getHT(mWnam);
mDataTypes |= DATA_WNAM;
esm.getHExact(mWnam.data(), mWnam.size());
if (mFlags & DATA_WNAM)
mDataTypes |= DATA_WNAM;
break;
case fourCC("VCLR"):
esm.skipHSub();
mDataTypes |= DATA_VCLR;
if (mFlags & DATA_VCLR)
mDataTypes |= DATA_VCLR;
break;
case fourCC("VTEX"):
esm.skipHSub();
mDataTypes |= DATA_VTEX;
if (mFlags & DATA_VCLR)
mDataTypes |= DATA_VTEX;
break;
default:
esm.fail("Unknown subrecord");