mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
move 'player' record to dynamic
This commit is contained in:
parent
83f5b1df81
commit
58b7927a36
@ -95,6 +95,16 @@ void ESMStore::setUp()
|
||||
mSkills.setUp();
|
||||
mMagicEffects.setUp();
|
||||
mAttributes.setUp();
|
||||
|
||||
ESM::NPC item;
|
||||
item.mId = "player";
|
||||
|
||||
std::vector<ESM::NPC>::iterator pIt =
|
||||
std::lower_bound(mNpcs.mStatic.begin(), mNpcs.mStatic.end(), item, RecordCmp());
|
||||
assert(pIt != mNpcs.mStatic.end() && pIt->mId == "player");
|
||||
|
||||
mNpcs.insert(*pIt);
|
||||
mNpcs.mStatic.erase(pIt);
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
|
Loading…
x
Reference in New Issue
Block a user