mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Merge cell names when merging cells (Fixes #1929)
This commit is contained in:
parent
b39fe85a51
commit
b6c6bfe943
@ -58,6 +58,7 @@ void Store<ESM::Cell>::load(ESM::ESMReader &esm, const std::string &id)
|
||||
// merge new cell into old cell
|
||||
// push the new references on the list of references to manage (saveContext = true)
|
||||
oldcell->mData = cell.mData;
|
||||
oldcell->mName = cell.mName; // merge name just to be sure (ID will be the same, but case could have been changed)
|
||||
oldcell->loadCell(esm, true);
|
||||
} else
|
||||
{
|
||||
@ -74,6 +75,7 @@ void Store<ESM::Cell>::load(ESM::ESMReader &esm, const std::string &id)
|
||||
if (oldcell) {
|
||||
// merge new cell into old cell
|
||||
oldcell->mData = cell.mData;
|
||||
oldcell->mName = cell.mName;
|
||||
oldcell->loadCell(esm, false);
|
||||
|
||||
// handle moved ref (MVRF) subrecords
|
||||
|
Loading…
x
Reference in New Issue
Block a user