diff --git a/src/framework/core/garbagecollection.cpp b/src/framework/core/garbagecollection.cpp index e67bd9b9c3..cf5e544e73 100644 --- a/src/framework/core/garbagecollection.cpp +++ b/src/framework/core/garbagecollection.cpp @@ -62,7 +62,7 @@ void GarbageCollection::texture() { std::shared_lock l(g_textures.m_mutex); std::erase_if(g_textures.m_textures, [](const auto& item) { - const auto& [key, value] = item; + const auto& [key, tex] = item; return tex.use_count() == 1 && tex->m_lastTimeUsage.ticksElapsed() > IDLE_TIME; }); @@ -106,4 +106,4 @@ void GarbageCollection::thingType() { thingType->unload(); }); } -} \ No newline at end of file +}