mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Merge remote-tracking branch 'lazydev/master'
This commit is contained in:
commit
fa880e3274
@ -220,9 +220,15 @@ namespace MWWorld
|
|||||||
template <>
|
template <>
|
||||||
inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
inline void Store<ESM::Dialogue>::load(ESM::ESMReader &esm, const std::string &id) {
|
||||||
std::string idLower = Misc::StringUtils::lowerCase(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
|
std::map<std::string, ESM::Dialogue>::iterator it = mStatic.find(idLower);
|
||||||
mStatic[idLower].load(esm);
|
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 <>
|
template <>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user