From 211048ae50ed132da7b63ef5e0ebc90267dfaad2 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sun, 4 Sep 2022 18:20:07 -0400 Subject: [PATCH] arsars --- client/Ui/Viewer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/Ui/Viewer.cs b/client/Ui/Viewer.cs index a2e8ced..ecdc0ca 100644 --- a/client/Ui/Viewer.cs +++ b/client/Ui/Viewer.cs @@ -39,6 +39,10 @@ internal class Viewer { goto End; } + if (this._idx >= nearby.Count) { + this._idx = Math.Max(0, nearby.Count - 1); + } + if (!ImGui.BeginTable("##viewer-table", 3)) { goto End; }