From bdf99c701bfb589c7147925c31c14611a61add7a Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Wed, 13 Dec 2023 17:53:28 -0600 Subject: [PATCH] Fix(CS): Use ESM flags and not internal ones for verifying presence of a subrecord --- components/esm3/loadland.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/esm3/loadland.cpp b/components/esm3/loadland.cpp index 6fc2292dbd..102f795dab 100644 --- a/components/esm3/loadland.cpp +++ b/components/esm3/loadland.cpp @@ -101,27 +101,27 @@ namespace ESM { case fourCC("VNML"): esm.skipHSub(); - if (mFlags & DATA_VNML) + if (mFlags & Flag_HeightsNormals) mDataTypes |= DATA_VNML; break; case fourCC("VHGT"): esm.skipHSub(); - if (mFlags & DATA_VHGT) + if (mFlags & Flag_HeightsNormals) mDataTypes |= DATA_VHGT; break; case fourCC("WNAM"): esm.getHExact(mWnam.data(), mWnam.size()); - if (mFlags & DATA_WNAM) + if (mFlags & Flag_HeightsNormals) mDataTypes |= DATA_WNAM; break; case fourCC("VCLR"): esm.skipHSub(); - if (mFlags & DATA_VCLR) + if (mFlags & Flag_Colors) mDataTypes |= DATA_VCLR; break; case fourCC("VTEX"): esm.skipHSub(); - if (mFlags & DATA_VCLR) + if (mFlags & Flag_Textures) mDataTypes |= DATA_VTEX; break; default: