diff --git a/src/RageTextureManager.cpp b/src/RageTextureManager.cpp index df0f723677..ff67b4bc4f 100644 --- a/src/RageTextureManager.cpp +++ b/src/RageTextureManager.cpp @@ -311,7 +311,7 @@ RageTextureManager::GarbageCollect(GCType type) if (PREFSMAN->m_verbose_log > 1) LOG->Trace("Performing texture garbage collection."); - for (auto ID : m_mapPathToTexture) { + for (auto& ID : m_mapPathToTexture) { RageTexture* t = ID.second; if (t->m_iRefCount)