mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 07:10:08 +00:00
Ensure NAME is null terminated for TESCS compatibility
This commit is contained in:
parent
f27030a87c
commit
7ce83c6cc8
@ -82,7 +82,7 @@ namespace ESM
|
|||||||
if (mId != mStringId)
|
if (mId != mStringId)
|
||||||
throw std::runtime_error("Trying to save Dialogue record with name \"" + mStringId
|
throw std::runtime_error("Trying to save Dialogue record with name \"" + mStringId
|
||||||
+ "\" not maching id " + mId.toDebugString());
|
+ "\" not maching id " + mId.toDebugString());
|
||||||
esm.writeHNString("NAME", mStringId);
|
esm.writeHNCString("NAME", mStringId);
|
||||||
}
|
}
|
||||||
else if (esm.getFormatVersion() <= MaxNameIsRefIdOnlyFormatVersion)
|
else if (esm.getFormatVersion() <= MaxNameIsRefIdOnlyFormatVersion)
|
||||||
esm.writeHNRefId("NAME", mId);
|
esm.writeHNRefId("NAME", mId);
|
||||||
|
Loading…
Reference in New Issue
Block a user