From 6992336c634910ed30e39771f9173c99222eb6ac Mon Sep 17 00:00:00 2001 From: Kurochi51 Date: Fri, 5 Jul 2024 21:29:15 +0300 Subject: [PATCH] Prevent trying to access an entry when none exist. (#1898) --- Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs index 368a328e1..c22dc76d3 100644 --- a/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs +++ b/Dalamud/Interface/Internal/Windows/TitleScreenMenuWindow.cs @@ -270,7 +270,7 @@ internal class TitleScreenMenuWindow : Window, IDisposable case State.Hide: { - if (this.DrawEntry(entries[0], true, false, true, true, false)) + if (entries.Count > 0 && this.DrawEntry(entries[0], true, false, true, true, false)) { this.state = State.Show; }