Ensure NAME is null terminated for TESCS compatibility

pull/3236/head
Evil Eye 3 months ago
parent f27030a87c
commit 7ce83c6cc8

@ -82,7 +82,7 @@ namespace ESM
if (mId != mStringId)
throw std::runtime_error("Trying to save Dialogue record with name \"" + mStringId
+ "\" not maching id " + mId.toDebugString());
esm.writeHNString("NAME", mStringId);
esm.writeHNCString("NAME", mStringId);
}
else if (esm.getFormatVersion() <= MaxNameIsRefIdOnlyFormatVersion)
esm.writeHNRefId("NAME", mId);

Loading…
Cancel
Save