mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 20:39:40 +00:00
fixed dialogue record loading with multiple content files
This commit is contained in:
parent
767cb54e7c
commit
90aa8f9db6
1 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue