Skip to content

Commit

Permalink
Fix the notedata parsing in the .osu loader
Browse files Browse the repository at this point in the history
  • Loading branch information
caiohsr14 committed Dec 14, 2018
1 parent ea91ce9 commit 457fbac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/NotesLoaderOSU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ OsuLoader::LoadNoteDataFromParsedData(
NoteData newNoteData;
newNoteData.SetNumTracks(stoi(parsedData["Difficulty"]["CircleSize"]));

auto it = parsedData["HitObjects"].begin();
vector<OsuNote> taps;
vector<OsuHold> holds;
while (++it != parsedData["HitObjects"].end()) {
for (auto it = parsedData["HitObjects"].begin();
it != parsedData["HitObjects"].end();
++it) {
auto line = it->first;
auto values = split(line, ",");
int type = stoi(values[3]);
Expand Down

0 comments on commit 457fbac

Please sign in to comment.