mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-03 14:45:37 +00:00
Fix for StartScript regression (Fixes #2590)
This commit is contained in:
parent
2f97649540
commit
7f2dd21c66
1 changed files with 13 additions and 0 deletions
|
@ -366,6 +366,19 @@ namespace MWWorld
|
|||
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 <>
|
||||
class Store<ESM::LandTexture> : public StoreBase
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue