Fix mixed iterators

Thanks Aru
This commit is contained in:
Lirusaito
2019-03-06 16:10:31 -05:00
parent 22609412e4
commit cd02bbd1cb
2 changed files with 2 additions and 2 deletions

View File

@@ -985,7 +985,7 @@ void LLShaderMgr::cleanupShaderSources()
for (GLsizei i = 0; i < count; ++i)
{
std::multimap<std::string, LLShaderMgr::CachedObjectInfo>::iterator it = mShaderObjects.begin();
for (; it != LLShaderMgr::instance()->mShaderObjects.end(); it++)
for (; it != mShaderObjects.end(); it++)
{
if ((*it).second.mHandle == shaders[i])
{

View File

@@ -7677,7 +7677,7 @@ LLViewerObject* LLVOAvatar::getWornAttachment( const LLUUID& inv_item_id )
LLViewerObject * LLVOAvatar::findAttachmentByID( const LLUUID & target_id ) const
{
for(attachment_map_t::const_iterator attachment_points_iter = mAttachmentPoints.begin();
attachment_points_iter != gAgentAvatarp->mAttachmentPoints.end();
attachment_points_iter != mAttachmentPoints.end();
++attachment_points_iter)
{
LLViewerJointAttachment* attachment = attachment_points_iter->second;