forked from teamnwah/openmw-tes3coop
This commit is contained in:
parent
71e5369f04
commit
a5ff8181b7
1 changed files with 16 additions and 10 deletions
|
@ -220,9 +220,15 @@ namespace MWWorld
|
|||
template <>
|
||||
inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
||||
std::string idLower = Misc::StringUtils::lowerCase(id);
|
||||
mStatic[idLower] = ESM::Dialogue();
|
||||
mStatic[idLower].mId = id; // don't smash case here, as this line is printed... I think
|
||||
mStatic[idLower].load(esm);
|
||||
|
||||
std::map<std::string, ESM::Dialogue>::iterator it = mStatic.find(idLower);
|
||||
if (it == mStatic.end()) {
|
||||
it = mStatic.insert( std::make_pair( idLower, ESM::Dialogue() ) ).first;
|
||||
it->second.mId = id; // don't smash case here, as this line is printed... I think
|
||||
}
|
||||
|
||||
//I am not sure is it need to load the dialog from a plugin if it was already loaded from prevois plugins
|
||||
it->second.load(esm);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
Loading…
Reference in a new issue