From 7ce83c6cc8ddafd1ff41c59b2b446bed8ae7ed58 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Thu, 3 Oct 2024 22:22:51 +0200 Subject: [PATCH] Ensure NAME is null terminated for TESCS compatibility --- components/esm3/loaddial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esm3/loaddial.cpp b/components/esm3/loaddial.cpp index 788e140573..0ac0e2f197 100644 --- a/components/esm3/loaddial.cpp +++ b/components/esm3/loaddial.cpp @@ -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);