Skip to content

Commit

Permalink
Prevent trying to access an entry when none exist. (#1898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurochi51 authored Jul 5, 2024
1 parent 4df929e commit 6992336
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public override void Draw()

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;
}
Expand Down

0 comments on commit 6992336

Please sign in to comment.