mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
fixed dialogue record loading with multiple content files
This commit is contained in:
parent
767cb54e7c
commit
90aa8f9db6
@ -521,9 +521,8 @@ void CSMWorld::Data::loadFile (const boost::filesystem::path& path, bool base)
|
||||
|
||||
if (record.mType==ESM::Dialogue::Journal)
|
||||
{
|
||||
int index = mJournals.getAppendIndex (id);
|
||||
mJournals.load (record, base);
|
||||
dialogue = &mJournals.getRecord (index).get();
|
||||
dialogue = &mJournals.getRecord (id).get();
|
||||
}
|
||||
else if (record.mType==ESM::Dialogue::Deleted)
|
||||
{
|
||||
@ -545,9 +544,8 @@ void CSMWorld::Data::loadFile (const boost::filesystem::path& path, bool base)
|
||||
}
|
||||
else
|
||||
{
|
||||
int index = mTopics.getAppendIndex (id);
|
||||
mTopics.load (record, base);
|
||||
dialogue = &mTopics.getRecord (index).get();
|
||||
dialogue = &mTopics.getRecord (id).get();
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user