1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 08: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"): case fourCC("VNML"):
esm.skipHSub(); esm.skipHSub();
mDataTypes |= DATA_VNML; if (mFlags & DATA_VNML)
mDataTypes |= DATA_VNML;
break; break;
case fourCC("VHGT"): case fourCC("VHGT"):
esm.skipHSub(); esm.skipHSub();
mDataTypes |= DATA_VHGT; if (mFlags & DATA_VHGT)
mDataTypes |= DATA_VHGT;
break; break;
case fourCC("WNAM"): case fourCC("WNAM"):
esm.getHT(mWnam); esm.getHExact(mWnam.data(), mWnam.size());
mDataTypes |= DATA_WNAM; if (mFlags & DATA_WNAM)
mDataTypes |= DATA_WNAM;
break; break;
case fourCC("VCLR"): case fourCC("VCLR"):
esm.skipHSub(); esm.skipHSub();
mDataTypes |= DATA_VCLR; if (mFlags & DATA_VCLR)
mDataTypes |= DATA_VCLR;
break; break;
case fourCC("VTEX"): case fourCC("VTEX"):
esm.skipHSub(); esm.skipHSub();
mDataTypes |= DATA_VTEX; if (mFlags & DATA_VCLR)
mDataTypes |= DATA_VTEX;
break; break;
default: default:
esm.fail("Unknown subrecord"); esm.fail("Unknown subrecord");