mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
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
@ -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…
x
Reference in New Issue
Block a user