forked from teamnwah/openmw-tes3coop
Fix for StartScript regression (Fixes #2590)
This commit is contained in:
parent
b9856162b3
commit
cc9b763891
1 changed files with 13 additions and 0 deletions
|
@ -366,6 +366,19 @@ namespace MWWorld
|
||||||
inserted.first->second = scpt;
|
inserted.first->second = scpt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <>
|
||||||
|
inline void Store<ESM::StartScript>::load(ESM::ESMReader &esm, const std::string &id)
|
||||||
|
{
|
||||||
|
ESM::StartScript s;
|
||||||
|
s.load(esm);
|
||||||
|
s.mId = Misc::StringUtils::toLower(s.mId);
|
||||||
|
std::pair<typename Static::iterator, bool> inserted = mStatic.insert(std::make_pair(s.mId, s));
|
||||||
|
if (inserted.second)
|
||||||
|
mShared.push_back(&inserted.first->second);
|
||||||
|
else
|
||||||
|
inserted.first->second = s;
|
||||||
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
class Store<ESM::LandTexture> : public StoreBase
|
class Store<ESM::LandTexture> : public StoreBase
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue