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