Skip to content

Commit

Permalink
try to load mods properly when precalculating replay info
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 5, 2022
1 parent 0db1b2b commit f562787
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Etterna/Models/HighScore/Replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ Replay::GetNoteData(Steps* pSteps, bool bTransform) -> NoteData
if (style != nullptr && td != nullptr) {
PlayerOptions po;
po.Init();
po.SetForReplay(true);
po.FromString(mods);
auto tmpSeed = GAMESTATE->m_iStageSeed;

Expand Down Expand Up @@ -1467,6 +1468,10 @@ Replay::GenerateJudgeInfoAndReplaySnapshots(int startingRow, float timingScale)
return false;
}

if (mods.empty()) {
SetHighScoreMods();
}

JudgeInfo& ji = judgeInfo;

// map of rows to vectors of holdreplayresults
Expand Down

0 comments on commit f562787

Please sign in to comment.