From 4b38bab0d90b51eca4b21e98fdb3056b1d891d3c Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Tue, 3 Dec 2019 18:46:42 +0300 Subject: [PATCH] Make sure empty cell name subrecords are saved (bug #5222) --- CHANGELOG.md | 1 + components/esm/loadcell.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53b8284f1..4680f0e11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -179,6 +179,7 @@ Bug #5213: SameFaction script function is broken Bug #5218: Crash when disabling ToggleBorders Bug #5220: GetLOS crashes when actor isn't loaded + Bug #5222: Empty cell name subrecords are not saved Feature #1774: Handle AvoidNode Feature #2229: Improve pathfinding AI Feature #3025: Analogue gamepad movement controls diff --git a/components/esm/loadcell.cpp b/components/esm/loadcell.cpp index 657d92d6e..ec4155f59 100644 --- a/components/esm/loadcell.cpp +++ b/components/esm/loadcell.cpp @@ -160,7 +160,7 @@ namespace ESM void Cell::save(ESMWriter &esm, bool isDeleted) const { - esm.writeHNOCString("NAME", mName); + esm.writeHNCString("NAME", mName); esm.writeHNT("DATA", mData, 12); if (isDeleted)