Skip to content

Commit 967f211

Browse files
committed
Fix crash when showing chapter panel for vanilla Prologue and Epilogue
1 parent 450d7e7 commit 967f211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/InGameOverworldHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ private static IEnumerator UpdateIconRoutine(OuiChapterPanel panel, OuiChapterSe
649649

650650
public static void OpenChapterPanel(Player player, string sid, ChapterPanelTrigger.ReturnToLobbyMode returnToLobbyMode, bool savingAllowed) {
651651
AreaData areaData = (AreaData.Get(sid) ?? AreaData.Get(0));
652-
if (!Dialog.Has(areaData.Name + "_collabcredits") && areaData.Mode[0].Checkpoints.Length > 0) {
652+
if (!Dialog.Has(areaData.Name + "_collabcredits") && areaData.Mode[0].Checkpoints?.Length > 0) {
653653
// saving isn't compatible with checkpoints, because both would appear on the same page.
654654
savingAllowed = false;
655655
}

0 commit comments

Comments
 (0)