Skip to content

Commit

Permalink
stuff ok
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 13, 2020
1 parent 6a5a06d commit aba56d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Etterna/Singletons/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1520,9 +1520,11 @@ SongManager::SaveCalcTestCreateNode() const
{
CHECKPOINT_M("Saving the Calc Test node.");

auto calctestlists = new XNode("CalcTest");
FOREACHM_CONST(Skillset, CalcTestList, testChartList, i)
calctestlists->AppendChild(i->second.CreateNode());
auto* calctestlists = new XNode("CalcTest");
for (const auto& i : testChartList) {
calctestlists->AppendChild(i.second.CreateNode());
}

return calctestlists;
}

Expand All @@ -1531,7 +1533,7 @@ SongManager::SaveCalcTestXmlToDir() const
{
auto fn = "Save/" + calctest_XML;
// calc test hardcode stuff cuz ASDKLFJASKDJLFHASHDFJ
std::unique_ptr<XNode> xml(SaveCalcTestCreateNode());
const std::unique_ptr<XNode> xml(SaveCalcTestCreateNode());
string err;
RageFile f;
if (!f.Open(fn, RageFile::WRITE)) {
Expand Down

0 comments on commit aba56d7

Please sign in to comment.