1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-24 07:11:34 +00:00

Ensure NAME is null terminated for TESCS compatibility

This commit is contained in:
Evil Eye 2024-10-03 22:22:51 +02:00
parent f27030a87c
commit 7ce83c6cc8

View file

@ -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);