diff --git a/src/tracks/track_manager.cpp b/src/tracks/track_manager.cpp index 5628878d1..0b87cb415 100644 --- a/src/tracks/track_manager.cpp +++ b/src/tracks/track_manager.cpp @@ -190,8 +190,8 @@ void TrackManager::removeTrack(const std::string &ident) Group2Indices &group_2_indices = track->isArena() ? m_arena_groups : m_track_groups; std::vector &group_names = track->isArena() - ? m_arena_group_names - : m_track_group_names; + ? m_arena_group_names + : m_track_group_names; const std::vector& groups=track->getGroups(); for(unsigned int i=0; i& new_groups = track->getGroups(); - const bool isArena = track->isArena(); - + const std::vector& new_groups = track->getGroups(); + + Group2Indices &group_2_indices = track->isArena() ? m_arena_groups + : m_track_groups; + std::vector &group_names = track->isArena() + ? m_arena_group_names + : m_track_group_names; + const unsigned int groups_amount = new_groups.size(); for(unsigned int i=0; i