Commit e6d6332a authored by Philip Trettner's avatar Philip Trettner

Fixed cppcheck (error) Iterator 'i' used after element has been erased

parent 25a5a23b
Pipeline #769 passed with stage
......@@ -79,9 +79,11 @@ void unregisterTextureLoadFunction(TextureLoadFuncPtr _function)
std::map<std::string,TextureLoadFuncPtr>::iterator n = textureLoadFunctions.end();
for(std::map<std::string,TextureLoadFuncPtr>::iterator i = textureLoadFunctions.begin() ; i != n ; i++)
{
if(i->second == _function)
{
textureLoadFunctions.erase(i);
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment