Skip to content

Commit

Permalink
prevent crash when saving files with unknown styles
Browse files Browse the repository at this point in the history
was a crash issue when saving on autosync. i dont care if you lose your unknown styles (be careful tho, this is why the game takes a backup for u)
  • Loading branch information
poco0317 committed Nov 6, 2021
1 parent a341052 commit 4a51675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Etterna/Models/Songs/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,9 +1195,11 @@ Song::GetStepsToSave(bool bSavingCache, const std::string& path)
}
vpStepsToSave.push_back(s);
}
/* // Dont save unknown styles. We can't deal with them
for (auto& s : m_UnknownStyleSteps) {
vpStepsToSave.push_back(s);
}
*/
return vpStepsToSave;
}

Expand Down

0 comments on commit 4a51675

Please sign in to comment.