diff --git a/HellionChat/Util/ImGuiUtil.cs b/HellionChat/Util/ImGuiUtil.cs index 4db4141..cc5187a 100755 --- a/HellionChat/Util/ImGuiUtil.cs +++ b/HellionChat/Util/ImGuiUtil.cs @@ -583,7 +583,9 @@ internal static class ImGuiUtil using (ImRaii.Disabled(isMax)) { - if (IconButton(FontAwesomeIcon.ArrowRight, id + 1.ToString())) + // Parentheses pin the operator precedence: without them this resolves as + // id.ToString() + "1" (e.g. "01" instead of "1"). + if (IconButton(FontAwesomeIcon.ArrowRight, (id + 1).ToString())) selected++; }