forked from teamnwah/openmw-tes3coop
Fix cells being listed twice in console autocompletion when using --skip-menu=0 and loading a game
This commit is contained in:
parent
c6a4506ac2
commit
95b3026c7e
1 changed files with 2 additions and 0 deletions
|
@ -685,12 +685,14 @@ namespace MWWorld
|
|||
typedef std::map<std::string, ESM::Cell>::iterator IntIterator;
|
||||
|
||||
//std::sort(mInt.begin(), mInt.end(), RecordCmp());
|
||||
mSharedInt.clear();
|
||||
mSharedInt.reserve(mInt.size());
|
||||
for (IntIterator it = mInt.begin(); it != mInt.end(); ++it) {
|
||||
mSharedInt.push_back(&(it->second));
|
||||
}
|
||||
|
||||
//std::sort(mExt.begin(), mExt.end(), ExtCmp());
|
||||
mSharedExt.clear();
|
||||
mSharedExt.reserve(mExt.size());
|
||||
for (ExtIterator it = mExt.begin(); it != mExt.end(); ++it) {
|
||||
mSharedExt.push_back(&(it->second));
|
||||
|
|
Loading…
Reference in a new issue