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])
{