Skip to content

Commit

Permalink
attempt to fix mac specific llvm __tree crash in NoteFieldPreview
Browse files Browse the repository at this point in the history
what??
  • Loading branch information
poco0317 committed Mar 13, 2022
1 parent fd80d2e commit 911061a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Etterna/Actor/Gameplay/NoteFieldPreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,12 @@ NoteFieldPreview::LoadNoteData(Steps* pSteps, bool bTransform)
if (nd != p_NoteDataFromSteps && p_NoteDataFromSteps != nullptr)
delete p_NoteDataFromSteps;
p_NoteDataFromSteps = nd;

LoadNoteData(nd);

if (nd == nullptr) {
LoadDummyNoteData();
} else {
LoadNoteData(nd);
}
}

void
Expand Down

0 comments on commit 911061a

Please sign in to comment.