forked from mirror/openmw-tes3mp
move 'player' record to dynamic
This commit is contained in:
parent
83f5b1df81
commit
58b7927a36
1 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue