Fix mixed iterators
Thanks Aru
This commit is contained in:
@@ -985,7 +985,7 @@ void LLShaderMgr::cleanupShaderSources()
|
|||||||
for (GLsizei i = 0; i < count; ++i)
|
for (GLsizei i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
std::multimap<std::string, LLShaderMgr::CachedObjectInfo>::iterator it = mShaderObjects.begin();
|
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])
|
if ((*it).second.mHandle == shaders[i])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7677,7 +7677,7 @@ LLViewerObject* LLVOAvatar::getWornAttachment( const LLUUID& inv_item_id )
|
|||||||
LLViewerObject * LLVOAvatar::findAttachmentByID( const LLUUID & target_id ) const
|
LLViewerObject * LLVOAvatar::findAttachmentByID( const LLUUID & target_id ) const
|
||||||
{
|
{
|
||||||
for(attachment_map_t::const_iterator attachment_points_iter = mAttachmentPoints.begin();
|
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)
|
++attachment_points_iter)
|
||||||
{
|
{
|
||||||
LLViewerJointAttachment* attachment = attachment_points_iter->second;
|
LLViewerJointAttachment* attachment = attachment_points_iter->second;
|
||||||
|
|||||||
Reference in New Issue
Block a user