From 7cdc58f85213473286880818c78be23ddaa47bdc Mon Sep 17 00:00:00 2001 From: "Joseph C. Sible" Date: Sun, 12 Oct 2025 22:00:26 -0400 Subject: [PATCH] Don't crash when manually entering pinned glyph config --- hud.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hud.cpp b/hud.cpp index eee48d86..cd85d532 100644 --- a/hud.cpp +++ b/hud.cpp @@ -88,8 +88,13 @@ EX void updateglyphpinned() { exp_parser ep; ep.s = pinnedglyphs; do { - int i = ep.iparse(); - if(i >= 0 && i < glyphs) glyphpinned[i] = true; + try { + int i = ep.iparse(); + if(i >= 0 && i < glyphs) glyphpinned[i] = true; + } + catch(hr_parse_exception&) { + continue; + } } while(ep.eat(",")); } }