Add sanity check in cFCODataSourceIterImpl::SeekToFCO() to fix a unit test that fails on some platforms

This commit is contained in:
Brian Cox 2017-03-15 21:44:54 -07:00
parent 900fad8ca4
commit b1147d65cf
1 changed files with 2 additions and 1 deletions

View File

@ -265,7 +265,8 @@ void cFCODataSourceIterImpl::SeekToFCO(const cFCOName& name, bool bCreatePeers)
GeneratePeers();
}
SeekToPeerByName( (*mCurPos)->GetName().GetShortName() );
if(mCurPos != mPeers.end() && *mCurPos)
SeekToPeerByName( (*mCurPos)->GetName().GetShortName() );
}
///////////////////////////////////////////////////////////////////////////////