mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
some fixes to info record sorting (doesn't address the main problem)
This commit is contained in:
parent
935d9241d8
commit
ec6018928c
@ -38,7 +38,22 @@ void CSMWorld::InfoCollection::load (const Info& record, bool base)
|
||||
}
|
||||
|
||||
if (index==-1)
|
||||
index = getIdMap().size();
|
||||
{
|
||||
std::pair<MapConstIterator, MapConstIterator> range = getTopicRange (topic);
|
||||
|
||||
if (range.first==range.second)
|
||||
index = getIdMap().size();
|
||||
else
|
||||
{
|
||||
for (; range.first!=range.second; ++range.first)
|
||||
{
|
||||
if (range.first->second>index)
|
||||
index = range.first->second;
|
||||
}
|
||||
|
||||
++index;
|
||||
}
|
||||
}
|
||||
|
||||
insertRecord (record2, index);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user