Skip to content

Commit 970d294

Browse files
committed
Didnt i fixed this before
1 parent 7568cbf commit 970d294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/funkin/editors/charter/CharterSelection.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CharterSelectionScreen extends EditorTreeMenuScreen {
4141

4242
for (d in s.difficulties) if (d != '') screen.add(makeChartOption(d, isVariant ? s.variant : null, s.name));
4343
screen.add(new Separator());
44-
if (s.variants != null) for (v in s.variants) if (s.metas.get(v) != null) screen.add(makeVariationOption(s.metas.get(v)));
44+
if (s.variants != null && s.metas != null) for (v in s.variants) if (s.metas.get(v) != null) screen.add(makeVariationOption(s.metas.get(v)));
4545

4646
#if sys
4747
screen.insert(0, new NewOption(getID('newDifficulty'), getID('newDifficultyDesc'), () -> {

0 commit comments

Comments
 (0)