Skip to content

Commit

Permalink
Remove useless if
Browse files Browse the repository at this point in the history
There's a != SORT GROUP above, and we're on an else here
  • Loading branch information
nico-abram committed Apr 2, 2018
1 parent f9d7a31 commit 7b42be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ void MusicWheel::BuildWheelItemDatas( vector<MusicWheelItemData *> &arrayWheelIt
auto& gname = n.second;
auto& gsongs = groups[n.second];

RageColor colorSection = (so == SORT_GROUP) ? SONGMAN->GetSongGroupColor(gname) : SECTION_COLORS.GetValue(iSectionColorIndex);
RageColor colorSection = SONGMAN->GetSongGroupColor(gname);
iSectionColorIndex = (iSectionColorIndex + 1) % NUM_SECTION_COLORS;
arrayWheelItemDatas.emplace_back(new MusicWheelItemData(WheelItemDataType_Section, NULL, gname, colorSection, gsongs.size()));

Expand Down

0 comments on commit 7b42be9

Please sign in to comment.