Skip to content

Commit

Permalink
Fix duplicate tracks in online battle
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Oct 28, 2024
1 parent a90c9e8 commit 3c3fbb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/states_screens/online/tracks_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ void TracksScreen::buildTrackList()

curr_tracks.insert(curr_tracks.end(), curr_arenas.begin(), curr_arenas.end());
curr_tracks.insert(curr_tracks.end(), curr_soccers.begin(), curr_soccers.end());
std::sort(curr_tracks.begin(), curr_tracks.end());
curr_tracks.resize(std::unique(curr_tracks.begin(), curr_tracks.end()) - curr_tracks.begin());

const int track_amount = (int)curr_tracks.size();

Expand Down

0 comments on commit 3c3fbb8

Please sign in to comment.