We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd02cfa commit df7c12bCopy full SHA for df7c12b
src/NoteDisplay.cpp
@@ -734,14 +734,9 @@ NoteDisplay::Update(float fDeltaTime)
734
{
735
/* This function is static: it's called once per game loop, not once per
736
* NoteDisplay. Update each cached item exactly once. */
737
- map<RString, map<NoteSkinAndPath, NoteResource*>>::iterator it2;
738
- map<NoteSkinAndPath, NoteResource*>::iterator it;
739
- for (it2 = g_NoteResource.begin(); it2 != g_NoteResource.end(); it2++) {
740
- for (it = it2->second.begin(); it != it2->second.end(); it++) {
741
- NoteResource* pRes = it->second;
742
- pRes->m_pActor->Update(fDeltaTime);
743
- }
744
+ for (auto& c : g_NoteResource)
+ for (auto& a : c.second)
+ a.second->m_pActor->Update(fDeltaTime);
745
}
746
747
void
0 commit comments