Fix cells being listed twice in console autocompletion when using --skip-menu=0 and loading a game

deque
scrawl 11 years ago
parent c6a4506ac2
commit 95b3026c7e

@ -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…
Cancel
Save