forked from mirror/openmw-tes3mp
Return the correct range for a given topic. Should resolve Bug #2569.
This commit is contained in:
parent
5f41ef4809
commit
f06ddd47c4
1 changed files with 11 additions and 0 deletions
|
@ -173,6 +173,17 @@ CSMWorld::InfoCollection::Range CSMWorld::InfoCollection::getTopicRange (const s
|
|||
|
||||
RecordConstIterator begin = getRecords().begin()+iter->second;
|
||||
|
||||
while (begin != getRecords().begin())
|
||||
{
|
||||
if (!Misc::StringUtils::ciEqual(begin->get().mTopicId, topic2))
|
||||
{
|
||||
// we've gone one too far, go back
|
||||
++begin;
|
||||
break;
|
||||
}
|
||||
--begin;
|
||||
}
|
||||
|
||||
// Find end
|
||||
RecordConstIterator end = begin;
|
||||
|
||||
|
|
Loading…
Reference in a new issue