mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Use the Topic ID of the cloned target from topicinfos
This commit is contained in:
parent
f7d7186c39
commit
5f1d3e0e2f
@ -15,6 +15,7 @@
|
||||
|
||||
#include "columnbase.hpp"
|
||||
#include "collectionbase.hpp"
|
||||
#include "info.hpp"
|
||||
#include "land.hpp"
|
||||
#include "landtexture.hpp"
|
||||
#include "ref.hpp"
|
||||
@ -264,6 +265,13 @@ namespace CSMWorld
|
||||
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*) ©.mModified;
|
||||
ptr->mRefNum.mIndex = 0;
|
||||
}
|
||||
if (type == UniversalId::Type_TopicInfo || type == UniversalId::Type_JournalInfo)
|
||||
{
|
||||
CSMWorld::Info* ptr = (CSMWorld::Info*) ©.mModified;
|
||||
std::vector<std::string> splitStringContainer;
|
||||
Misc::StringUtils::split(destination, splitStringContainer, "#");
|
||||
ptr->mTopicId = splitStringContainer[0];
|
||||
}
|
||||
|
||||
int index = getAppendIndex(destination, type);
|
||||
insertRecord(copy, getAppendIndex(destination, type));
|
||||
|
Loading…
x
Reference in New Issue
Block a user